Interface TriPredicate<T,​U,​V>

  • Type Parameters:
    T - the type of the first object parameter
    U - the type of the second object parameter
    V - the type of the third object parameter
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TriPredicate<T,​U,​V>
    A predicate that takes three arguments.
    • Method Detail

      • test

        boolean test​(T t,
                     U u,
                     V v)
        Applies this predicate to the given arguments.
        Parameters:
        t - the first predicate argument
        u - the second predicate argument
        v - the third predicate argument
        Returns:
        whether the predicate matches
      • and

        default TriPredicate<T,​U,​V> and​(TriPredicate<? super T,​? super U,​? super V> other)
        Returns a new predicate that returns true if both predicates return true.

        The second predicate is only invoked if the first returns true.

        Parameters:
        other - the second predicate
        Returns:
        the combined predicate, "this AND that"
      • or

        default TriPredicate<T,​U,​V> or​(TriPredicate<? super T,​? super U,​? super V> other)
        Returns a new predicate that returns true if either predicates returns true.

        The second predicate is only invoked if the first returns false.

        Parameters:
        other - the second predicate
        Returns:
        the combined predicate, "this OR that"
      • negate

        default TriPredicate<T,​U,​V> negate()
        Returns a new predicate that negates the result of this predicate.
        Returns:
        the predicate, "NOT this"