Interface ExceptionObjIntPredicate<T,E extends Exception>

Type Parameters:
T - the first argument type
E - the exception type

public interface ExceptionObjIntPredicate<T,E extends Exception>
A predicate that operates on an object and an integer.
  • Method Details

    • test

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

      default ExceptionObjIntPredicate<T,E> and(ExceptionObjIntPredicate<? super T,? extends E> 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 ExceptionObjIntPredicate<T,E> 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 ExceptionObjIntPredicate<T,E> or(ExceptionObjIntPredicate<? super T,? extends E> 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