Top Description Constructors Methods
org.junit.platform.commons.util

public final Class FunctionUtils

extends Object
Class Inheritance
Annotations
@API
status:INTERNAL
since:1.0
Static Imports
org.apiguardian.api.API.Status.INTERNAL

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <T extends @Nullable Object, V extends @Nullable Object> Predicate<T>
where(Function<T, V>
the function to apply
function
,
Predicate<? super V>
the predicate to test against the result of the function
predicate
)

Return a predicate that first applies the specified function and then tests the specified predicate against the result of the function.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FunctionUtilsback to summary
private FunctionUtils()

Method Detail

whereback to summary
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:Function<T, V>

the function to apply

predicate:Predicate<? super V>

the predicate to test against the result of the function