Modifier and Type | Method and Description |
---|---|
static <T,E extends Throwable> |
PredicateWithThrowable.asPredicateWithThrowable(Predicate<T> predicate)
Utility method to convert PredicateWithThrowable
|
static <T,E extends Throwable> |
PredicateWithThrowable.castPredicateWithThrowable(PredicateWithThrowable<T,E> predicatewiththrowable)
Utility method to mark lambdas of type PredicateWithThrowable
|
default PredicateWithThrowable<T,E> |
PredicateWithThrowable.onException(BiConsumer<Throwable,Object[]> consumer) |
default PredicateWithThrowable<T,E> |
PredicateWithThrowable.onException(Consumer<Throwable> consumer) |
default PredicateWithThrowable<T,E> |
PredicateWithThrowable.withLogging()
Will log WARNING level exceptions on logger if they occur within the interface
|
default PredicateWithThrowable<T,E> |
PredicateWithThrowable.withLogging(org.slf4j.Logger logger)
Will log WARNING level exceptions on logger if they occur within the interface
|
default PredicateWithThrowable<T,E> |
PredicateWithThrowable.withLogging(org.slf4j.Logger logger,
String message) |
Modifier and Type | Method and Description |
---|---|
static <T,E extends Throwable> |
PredicateWithThrowable.aPredicateThatUnsafelyThrowsUnchecked(PredicateWithThrowable<T,E> predicatewiththrowable)
Utility method to unwrap lambdas of type Predicate and withUncheckedThrowable any Exception
|
static <T,E extends Throwable> |
PredicateWithThrowable.castPredicateWithThrowable(PredicateWithThrowable<T,E> predicatewiththrowable)
Utility method to mark lambdas of type PredicateWithThrowable
|
Copyright © 2017. All rights reserved.