Class BiPredicates


  • public final class BiPredicates
    extends Object
    Helper methods for Remote.BiPredicates.
    Since:
    21.12
    Author:
    bo
    • Method Detail

      • never

        public static <T,​U> com.tangosol.util.function.Remote.BiPredicate<T,​U> never()
        Obtains a Remote.BiPredicate that never succeeds.
        Type Parameters:
        T - the type of the first value
        U - 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 a Remote.Predicate that ensures all results satisfy a specified Remote.Predicate.
        Type Parameters:
        T - the type of the result
        Parameters:
        predicate - the result Remote.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 a Remote.Predicate that ensures any result satisfies a specified Remote.Predicate.
        Type Parameters:
        T - the result type
        Parameters:
        predicate - the result Remote.Predicate
        Returns:
        a Remote.BiPredicate