Interface ObjIntPredicate<T>

Type Parameters:
T - the first argument type

public interface ObjIntPredicate<T>
A predicate that operates on an object and an integer.
  • Method Summary

    Modifier and Type
    Method
    Description
    and(ObjIntPredicate<? super T> other)
    Returns a predicate which is true only when this and the given predicate return true.
    Returns a predicate which is true when this predicate is false, and vice-versa.
    or(ObjIntPredicate<? super T> other)
    Returns a predicate which is true when either this or the given predicate return true.
    boolean
    test(T object, int value)
    Evaluate this predicate on the given arguments.
  • Method Details

    • test

      boolean test(T object, int value)
      Evaluate this predicate on the given arguments.
      Parameters:
      object - the first argument
      value - the second argument
      Returns:
      true if the predicate passes, false otherwise
    • and

      default ObjIntPredicate<T> and(ObjIntPredicate<? super T> other)
      Returns a predicate which is true only when this and the given predicate return true.
      Parameters:
      other - the other predicate (must not be null)
      Returns:
      a predicate which is true only when this and the given predicate return true
    • negate

      default ObjIntPredicate<T> negate()
      Returns a predicate which is true when this predicate is false, and vice-versa.
      Returns:
      a predicate which is true when this predicate is false, and vice-versa
    • or

      default ObjIntPredicate<T> or(ObjIntPredicate<? super T> other)
      Returns a predicate which is true when either this or the given predicate return true.
      Parameters:
      other - the other predicate (must not be null)
      Returns:
      a predicate which is true when either this or the given predicate return true