dmfs / jems

Java gems, a collection of Java utilities.
Apache License 2.0
5 stars 2 forks source link

AnyOf<T> Predicate which takes instances of T and apply an EqualTo predicate. #252

Closed dmfs closed 4 years ago

dmfs commented 4 years ago

This makes it easier to check if an object equals any of the elements provided.

This should also be done for AllOf and NoneOf.

dmfs commented 4 years ago

Turns out this isn't useful at all for AllOf :rofl:

dmfs commented 4 years ago

Done