java.util.function.DoublePredicate@FunctionalInterface
public interface ThrowingDoublePredicate
extends java.util.function.DoublePredicate
boolean-valued function) of one double-valued argument, possibly throwing an exception.| Modifier and Type | Method | Description |
|---|---|---|
default java.util.function.DoublePredicate |
fallbackTo(java.util.function.DoublePredicate fallback) |
Returns a
DoublePredicate evaluating the given predicate on the argument if this predicate throws an exception. |
default java.util.function.DoublePredicate |
fallbackTo(java.util.function.DoublePredicate fallback,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
DoublePredicate evaluating the given predicate on the argument if this predicate throws an exception. |
default java.util.function.DoublePredicate |
orReturn(boolean value) |
Returns a
DoublePredicate returning the given value if this predicate throws an exception. |
default java.util.function.DoublePredicate |
orReturn(boolean value,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
DoublePredicate returning the given value if this predicate throws an exception. |
default ThrowingDoublePredicate |
orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass) |
Returns a
ThrowingDoublePredicate throwing an exception of the given type if this predicate throws an exception. |
default ThrowingDoublePredicate |
orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass,
java.lang.String message) |
Returns a
ThrowingDoublePredicate throwing an exception of the given type if this predicate throws an exception. |
default ThrowingDoublePredicate |
orTryWith(ThrowingDoublePredicate other) |
Returns a
ThrowingDoublePredicate evaluating the given predicate on the argument if this predicate throws an exception. |
default ThrowingDoublePredicate |
orTryWith(ThrowingDoublePredicate other,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer) |
Returns a
ThrowingDoublePredicate evaluating the given predicate on the argument if this predicate throws an exception. |
default boolean |
test(double argument) |
Evaluates this predicate on the given argument.
|
boolean |
testThrowing(double argument) |
Evaluates this predicate on the given argument.
|
default boolean test(double argument)
UncheckedException.test in interface java.util.function.DoublePredicateboolean testThrowing(double argument)
throws java.lang.Exception
java.lang.Exceptiondefault java.util.function.DoublePredicate fallbackTo(java.util.function.DoublePredicate fallback)
DoublePredicate evaluating the given predicate on the argument if this predicate throws an exception.java.lang.IllegalArgumentException - if fallback is nulldefault java.util.function.DoublePredicate fallbackTo(java.util.function.DoublePredicate fallback,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
DoublePredicate evaluating the given predicate on the argument if this predicate throws an exception.java.lang.IllegalArgumentException - if fallback is nulldefault java.util.function.DoublePredicate orReturn(boolean value)
DoublePredicate returning the given value if this predicate throws an exception.default java.util.function.DoublePredicate orReturn(boolean value,
java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
DoublePredicate returning the given value if this predicate throws an exception.default ThrowingDoublePredicate orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)
ThrowingDoublePredicate throwing an exception of the given type if this predicate throws an exception.
The original exception thrown by this predicate is the cause of the thrown exception.
The exception class must have a constructor accepting a single Throwable as an argument.
java.lang.IllegalArgumentException - if exceptionClass is nulldefault ThrowingDoublePredicate orThrow(java.lang.Class<? extends java.lang.RuntimeException> exceptionClass, java.lang.String message)
ThrowingDoublePredicate throwing an exception of the given type if this predicate throws an exception.
The original exception thrown by this predicate is the cause of the thrown exception.
The exception class must have a constructor accepting String and Throwable as arguments.
java.lang.IllegalArgumentException - if exceptionClass is nulldefault ThrowingDoublePredicate orTryWith(ThrowingDoublePredicate other)
ThrowingDoublePredicate evaluating the given predicate on the argument if this predicate throws an exception.java.lang.IllegalArgumentException - if other is nulldefault ThrowingDoublePredicate orTryWith(ThrowingDoublePredicate other, java.util.function.Consumer<java.lang.Exception> exceptionConsumer)
ThrowingDoublePredicate evaluating the given predicate on the argument if this predicate throws an exception.java.lang.IllegalArgumentException - if other is null