java 数组过滤 List<PgMenu> collect = pgMenuList.stream().filter(PgMenu -> PgMenu.getState() != 2).collect(Collectors.toList());