I\'ve got Google Guava inside Stream:
this.map.entrySet().stream() .filter(entity -> !Strings.isNullOrEmpty(entity.getValue())) .map(obj -> String.form
In java 11 there is a new method Predicate::not.
So you can filter out empty string :
list.stream() .filter(Objects::nonNull) .filter(Predicate.not(String::isEmpty))