Interface TriPredicate<T,U,V>

Type Parameters:
T - - type of the first argument to the predicate
U - - type of the second argument the predicate
V - - type of the third argument the predicate
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>
Represents a predicate (boolean-valued function) of three arguments. This is the three-arity specialization of Predicate. This is a functional interface whose functional method is test(Object, Object, Object).
  • Method Summary

    Modifier and Type
    Method
    Description
    default TriPredicate<T,U,V>
    and(TriPredicate<? super T,? super U,? super V> other)
    Creates a composed predicate that represents a logical AND of this predicate and another.
    default TriPredicate<T,U,V>
     
    default TriPredicate<T,U,V>
    or(TriPredicate<? super T,? super U,? super V> other)
    Creates a composed predicate that represents a logical OR of this predicate and another.
    boolean
    test(T t, U u, V v)
    Evaluates this predicate on the given arguments.
  • Method Details

    • test

      boolean test(T t, U u, V v)
      Evaluates this predicate on the given arguments.
      Parameters:
      t - - first input argument
      u - - second input argument
      v - - third input argument
      Returns:
      true if the input arguments match the predicate, otherwise false
    • and

      default TriPredicate<T,U,V> and(TriPredicate<? super T,? super U,? super V> other)
      Creates a composed predicate that represents a logical AND of this predicate and another.
      Parameters:
      other - - predicate that will be logically-ANDed with this predicate
      Returns:
      composed predicate
    • negate

      default TriPredicate<T,U,V> negate()
      Returns:
      a predicate that represents the logical negation of this predicate
    • or

      default TriPredicate<T,U,V> or(TriPredicate<? super T,? super U,? super V> other)
      Creates a composed predicate that represents a logical OR of this predicate and another.
      Parameters:
      other - - predicate that will be logically-ORed with this predicate
      Returns:
      composed predicate