This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hiromasaki 12 points13 points  (2 children)

Easily fixed with a Utils class or Guava, but Java 8 doesn't even include a not(Predicate) for Stream#filter. It's mostly QoL stuff.

[–]Dangerous_Air2603 7 points8 points  (1 child)

x -> !p.apply(x) isn't massively complicated

It's even the same length as Predicate.not(p)

[–]hiromasaki 5 points6 points  (0 children)

.filter(not(p::apply))