Class BiPredicates
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.function.BiPredicates
-
public final class BiPredicates extends Object
Helper methods forRemote.BiPredicates.- Since:
- 21.12
- Author:
- bo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBiPredicates.AllResultsBiPredicate<T>ARemote.BiPredicatethat is satisfied only when all provided results satisfy anotherRemote.Predicate.static classBiPredicates.AnyResultBiPredicate<T>ARemote.BiPredicatethat is satisfied when one or more of the provided results satisfies anotherRemote.Predicate.static classBiPredicates.NeverBiPredicateABiPredicates.NeverBiPredicatereturns false for all values provided to theBiPredicate.test(Object, Object)method.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> com.tangosol.util.function.Remote.BiPredicate<ExecutionPlan,Map<String,T>>all(com.tangosol.util.function.Remote.Predicate<? super T> predicate)Obtains aRemote.Predicatethat ensures all results satisfy a specifiedRemote.Predicate.static <T> com.tangosol.util.function.Remote.BiPredicate<ExecutionPlan,Map<String,T>>any(com.tangosol.util.function.Remote.Predicate<? super T> predicate)Obtains aRemote.Predicatethat ensures any result satisfies a specifiedRemote.Predicate.static <T,U>
com.tangosol.util.function.Remote.BiPredicate<T,U>never()Obtains aRemote.BiPredicatethat never succeeds.
-
-
-
Method Detail
-
never
public static <T,U> com.tangosol.util.function.Remote.BiPredicate<T,U> never()
Obtains aRemote.BiPredicatethat never succeeds.- Type Parameters:
T- the type of the first valueU- the type of the second value- Returns:
- a
Remote.BiPredicate
-
all
public static <T> com.tangosol.util.function.Remote.BiPredicate<ExecutionPlan,Map<String,T>> all(com.tangosol.util.function.Remote.Predicate<? super T> predicate)
Obtains aRemote.Predicatethat ensures all results satisfy a specifiedRemote.Predicate.- Type Parameters:
T- the type of the result- Parameters:
predicate- the resultRemote.Predicate- Returns:
- a
Remote.BiPredicate
-
any
public static <T> com.tangosol.util.function.Remote.BiPredicate<ExecutionPlan,Map<String,T>> any(com.tangosol.util.function.Remote.Predicate<? super T> predicate)
Obtains aRemote.Predicatethat ensures any result satisfies a specifiedRemote.Predicate.- Type Parameters:
T- the result type- Parameters:
predicate- the resultRemote.Predicate- Returns:
- a
Remote.BiPredicate
-
-