Package de.xima.fc.utils
Class PredicateUtils
java.lang.Object
de.xima.fc.utils.PredicateUtils
Utility for
Predicate
s.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PredicateUtils
public PredicateUtils()
-
-
Method Details
-
compose
Returns the composition of a function and a predicate. For everyx
, the generated predicate returnspredicate(function(x))
.- Type Parameters:
A
- Type of the items that can be tested by the composed predicate.B
- Type of the items that can be tested by the predicate to compose.- Parameters:
predicate
- Predicate to compose.function
- Mapping function.- Returns:
- the composition of the provided function and predicate
-