E - The extension@FunctionalInterface public interface LongPredicateWithThrowable<E extends Throwable> extends LongPredicate
| Modifier and Type | Method and Description |
|---|---|
static <E extends Throwable> |
aLongPredicateThatUnsafelyThrowsUnchecked(LongPredicateWithThrowable<E> longpredicatewiththrowable)
Utility method to unwrap lambdas of type LongPredicate and withUncheckedThrowable any Exception
|
static <E extends Throwable> |
asLongPredicateWithThrowable(LongPredicate longpredicate)
Utility method to convert LongPredicateWithThrowable
|
static <E extends Throwable> |
castLongPredicateWithThrowable(LongPredicateWithThrowable<E> longpredicatewiththrowable)
Utility method to mark lambdas of type LongPredicateWithThrowable
|
default LongPredicateWithThrowable<E> |
onException(BiConsumer<Throwable,Object[]> consumer) |
default LongPredicateWithThrowable<E> |
onException(Consumer<Throwable> consumer) |
default boolean |
test(long v1)
Overridden method of LongPredicateWithThrowable that will call testWithThrowable, but catching any exceptions.
|
boolean |
testWithThrowable(long v1)
Functional method that will throw exceptions.
|
default LongPredicate |
thatReturnsOnCatch(boolean defaultReturnValue) |
default LongPredicate |
thatUnsafelyThrowsUnchecked() |
default LongPredicateWithThrowable<E> |
withLogging()
Will log WARNING level exceptions on logger if they occur within the interface
|
default LongPredicateWithThrowable<E> |
withLogging(org.slf4j.Logger logger)
Will log WARNING level exceptions on logger if they occur within the interface
|
default LongPredicateWithThrowable<E> |
withLogging(org.slf4j.Logger logger,
String message) |
and, negate, orstatic <E extends Throwable> LongPredicateWithThrowable<E> castLongPredicateWithThrowable(LongPredicateWithThrowable<E> longpredicatewiththrowable)
E - The type this interface is allowed to throwlongpredicatewiththrowable - The interface instancestatic <E extends Throwable> LongPredicate aLongPredicateThatUnsafelyThrowsUnchecked(LongPredicateWithThrowable<E> longpredicatewiththrowable) throws E extends Throwable
E - The type this interface is allowed to throwlongpredicatewiththrowable - The interface instanceE - the original Exception from longpredicatewiththrowableE extends Throwablestatic <E extends Throwable> LongPredicateWithThrowable<E> asLongPredicateWithThrowable(LongPredicate longpredicate)
E - The type this interface is allowed to throwlongpredicate - The interface instancedefault boolean test(long v1)
test in interface LongPredicatev1 - parameter to overridden methodboolean testWithThrowable(long v1)
throws E extends Throwable
default LongPredicate thatReturnsOnCatch(boolean defaultReturnValue)
defaultReturnValue - A value to return if any throwable is caught.default LongPredicate thatUnsafelyThrowsUnchecked() throws E extends Throwable
default LongPredicateWithThrowable<E> withLogging(org.slf4j.Logger logger, String message)
logger - The logger to log exceptions onmessage - A message to use for logging exceptionsdefault LongPredicateWithThrowable<E> withLogging(org.slf4j.Logger logger)
logger - The logger instance to log exceptions ondefault LongPredicateWithThrowable<E> withLogging()
default LongPredicateWithThrowable<E> onException(Consumer<Throwable> consumer)
consumer - An exception consumer.default LongPredicateWithThrowable<E> onException(BiConsumer<Throwable,Object[]> consumer)
consumer - An exception consumer.Copyright © 2017. All rights reserved.