Package software.amazon.smithy.utils
Class FunctionalUtils
java.lang.Object
software.amazon.smithy.utils.FunctionalUtils
Utilities for working with functions, predicates, etc.
-
Method Summary
-
Method Details
-
not
Negates aPredicate
.- Type Parameters:
T
- Value type of the predicate.- Parameters:
predicate
- Predicate to negate.- Returns:
- Returns a predicate that negates the given predicate.
-
alwaysTrue
Returns aPredicate
that always returns true.- Type Parameters:
T
- Value that the predicate accepts.- Returns:
- Returns the predicate.
-