Solutionunvalidated
You can create it yourself — Stream.of(X.builder().build()) .filter(combine(X::getS, String::isBlank)). Tension: If you restricted by using pure JDK try this:. Outcome: Stream.of( X.builder().build() ).filter(Function .identity() .andThen(X::getS) .andThen(Object::toString) .andThen(String::isBlank) ::apply ).toList();.
515036a3-31a1-47d6-b7ac-37f038afb336
You can create it yourself — Stream.of(X.builder().build()) .filter(combine(X::getS, String::isBlank)). Tension: If you restricted by using pure JDK try this:. Outcome: Stream.of( X.builder().build() ).filter(Function .identity() .andThen(X::getS) .andThen(Object::toString) .andThen(String::isBlank) ::apply ).toList();.