Modifier and Type | Method and Description |
---|---|
static <R,E extends Throwable> |
LongFunctionWithThrowable.asLongFunctionWithThrowable(LongFunction<R> longfunction)
Utility method to convert LongFunctionWithThrowable
|
static <R,E extends Throwable> |
LongFunctionWithThrowable.castLongFunctionWithThrowable(LongFunctionWithThrowable<R,E> longfunctionwiththrowable)
Utility method to mark lambdas of type LongFunctionWithThrowable
|
default LongFunctionWithThrowable<R,E> |
LongFunctionWithThrowable.onException(BiConsumer<Throwable,Object[]> consumer) |
default LongFunctionWithThrowable<R,E> |
LongFunctionWithThrowable.onException(Consumer<Throwable> consumer) |
default LongFunctionWithThrowable<R,E> |
LongFunctionWithThrowable.withLogging()
Will log WARNING level exceptions on logger if they occur within the interface
|
default LongFunctionWithThrowable<R,E> |
LongFunctionWithThrowable.withLogging(org.slf4j.Logger logger)
Will log WARNING level exceptions on logger if they occur within the interface
|
default LongFunctionWithThrowable<R,E> |
LongFunctionWithThrowable.withLogging(org.slf4j.Logger logger,
String message) |
Modifier and Type | Method and Description |
---|---|
static <R,E extends Throwable> |
LongFunctionWithThrowable.aLongFunctionThatUnsafelyThrowsUnchecked(LongFunctionWithThrowable<R,E> longfunctionwiththrowable)
Utility method to unwrap lambdas of type LongFunction and withUncheckedThrowable any Exception
|
static <R,E extends Throwable> |
LongFunctionWithThrowable.castLongFunctionWithThrowable(LongFunctionWithThrowable<R,E> longfunctionwiththrowable)
Utility method to mark lambdas of type LongFunctionWithThrowable
|
Copyright © 2017. All rights reserved.