I\'ve got Google Guava inside Stream:
this.map.entrySet().stream() .filter(entity -> !Strings.isNullOrEmpty(entity.getValue())) .map(obj -> String.form
It works for me: list.stream().filter(el-> el != null && !el.toString().trim().isEmpty()).collect(Collectors.toList());
list.stream().filter(el-> el != null && !el.toString().trim().isEmpty()).collect(Collectors.toList());