List<YourEntity> result = list.stream().filter((YourEntity m) -> m.getName() != null
&& Constants.STRING_ZERO.equals(m.getName2())).collect(Collectors.toList());
List<YourEntity> result = list.stream().filter((YourEntity m) -> m.getName() != null
&& Constants.STRING_ZERO.equals(m.getName2())).collect(Collectors.toList());