Interface ThrowableIntPredicate

All Superinterfaces:
IntPredicate
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 ThrowableIntPredicate extends IntPredicate
Represents a predicate (boolean-valued function) of one int-valued argument. This is the int-consuming primitive type specialization of ThrowablePredicate.

Permits checked exceptions unlike IntPredicate

This is a functional interface whose functional method is test(int).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    test(int value)
    Evaluates this predicate on the given argument.
    boolean
    testUnsafe(int value)
    Evaluates this predicate on the given argument.

    Methods inherited from interface java.util.function.IntPredicate

    and, negate, or
  • Method Details

    • testUnsafe

      boolean testUnsafe(int value) throws Throwable
      Evaluates this predicate on the given argument.
      Parameters:
      value - the input argument
      Returns:
      true if the input argument matches the predicate, otherwise false
      Throws:
      Throwable - occurred during processing
    • test

      default boolean test(int value)
      Evaluates this predicate on the given argument.
      Specified by:
      test in interface IntPredicate
      Parameters:
      value - the input argument
      Returns:
      true if the input argument matches the predicate, otherwise false