Package io.bytestreams.codec.core.util
Class Predicates
java.lang.Object
io.bytestreams.codec.core.util.Predicates
Utility methods for creating common predicates.
-
Method Details
-
alwaysTrue
Returns a predicate that always returns true.- Type Parameters:
T- the type of the input to the predicate- Returns:
- a predicate that always returns true
-
alwaysFalse
Returns a predicate that always returns false.- Type Parameters:
T- the type of the input to the predicate- Returns:
- a predicate that always returns false
-