Interface IntObjectPredicate<Z>

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 IntObjectPredicate<Z>
Represents a boolean-valued function of one int-valued and one object-valued argument. This is the int-consuming primitive specialization for BiPredicate.
  • Method Summary

    Modifier and Type
    Method
    Description
    or(Predicate<Z> predicate)
    Combines this IntObjectPredicate with the specified Predicate to create a new IntObjectPredicate.
    boolean
    test(int i, Z o)
    Evaluates a boolean-valued function on an integer and an object.
  • Method Details

    • test

      boolean test(int i, Z o)
      Evaluates a boolean-valued function on an integer and an object.
      Parameters:
      i - the integer argument to be tested
      o - the object argument to be tested
      Returns:
      true if the function evaluates to true, otherwise false
    • or

      default IntObjectPredicate<Z> or(Predicate<Z> predicate)
      Combines this IntObjectPredicate with the specified Predicate to create a new IntObjectPredicate. The resulting predicate evaluates to true if either this IntObjectPredicate or the specified Predicate evaluates to true. Both the int argument and the object argument will be tested by this IntObjectPredicate.
      Parameters:
      predicate - the Predicate to be combined with this IntObjectPredicate
      Returns:
      a new IntObjectPredicate that evaluates to true if either this IntObjectPredicate or the specified Predicate evaluates to true