Interface ThrowableDoublePredicate

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

Permits checked exceptions unlike DoublePredicate

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

See Also:
  • Method Summary

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

    Methods inherited from interface java.util.function.DoublePredicate

    and, negate, or
  • Method Details

    • testUnsafe

      boolean testUnsafe(double 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(double value)
      Evaluates this predicate on the given argument.
      Specified by:
      test in interface DoublePredicate
      Parameters:
      value - the input argument
      Returns:
      true if the input argument matches the predicate, otherwise false