Class FunctionUtils
java.lang.Object
org.junit.platform.commons.util.FunctionUtils
Collection of utilities for working with
Functions,
Predicates, etc.
DISCLAIMER
These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionReturn a predicate that first applies the specified function and then tests the specified predicate against the result of the function.
-
Method Details
-
where
public static <T extends @Nullable Object, V extends @Nullable Object> Predicate<T> where(Function<T, V> function, Predicate<? super V> predicate) Return a predicate that first applies the specified function and then tests the specified predicate against the result of the function.- Parameters:
function- the function to applypredicate- the predicate to test against the result of the function
-