Package | Description |
---|---|
org.helenus.util | |
org.helenus.util.function |
Modifier and Type | Method and Description |
---|---|
static <T,E extends Exception> |
Inhibit.interruptionsAndExceptionsAndReturn(ESupplier<T,Exception> cmd,
EFunction<Exception,T,E> handle)
Invokes the specified operation while inhibiting Java exceptions and
interruptions and propagating the interruptions properly after; runtime
exceptions are still propagated as expected.
|
static <T,E extends Throwable> |
Inhibit.interruptionsAndReturn(E2Supplier<T,E,InterruptedException> cmd,
EFunction<InterruptedException,T,E> handle)
Invokes the specified operation while inhibiting Java interruptions and
propagating them after.
|
static <T,E extends Exception> |
Inhibit.interruptionsWhileRetryingAndExceptionsAndReturn(ESupplier<T,Exception> cmd,
EFunction<Exception,T,E> handle)
Invokes the specified operation while inhibiting Java exceptions and
interruptions and propagating the interruptions properly after.
|
static <T,E extends Throwable> |
Inhibit.throwablesAndReturn(ESupplier<T,Throwable> cmd,
EFunction<Throwable,T,E> handle)
Invokes the specified operation while inhibiting Java errors and
exceptions.
|
static <T,R,E extends Throwable> |
Inhibit.throwablesAndReturn(T arg,
EFunction<T,R,Throwable> cmd,
EFunction<Throwable,R,E> handle)
Invokes the specified function while inhibiting Java errors and
exceptions.
|
static <T,R,E extends Throwable> |
Inhibit.throwablesAndReturn(T arg,
EFunction<T,R,Throwable> cmd,
EFunction<Throwable,R,E> handle)
Invokes the specified function while inhibiting Java errors and
exceptions.
|
static <T,E extends Throwable> |
Inhibit.unwrappedThrowablesAndReturn(ESupplier<T,Throwable> cmd,
EFunction<Throwable,T,E> handle)
Invokes the specified operation while inhibiting Java errors, exceptions,
and unwrapping target exceptions.
|
static <T,R,E extends Throwable> |
Inhibit.unwrappedThrowablesAndReturn(T arg,
EFunction<T,R,Throwable> cmd,
EFunction<Throwable,R,E> handle)
Invokes the specified function while inhibiting Java errors, exceptions,
and unwrapping target exceptions.
|
static <T,R,E extends Throwable> |
Inhibit.unwrappedThrowablesAndReturn(T arg,
EFunction<T,R,Throwable> cmd,
EFunction<Throwable,R,E> handle)
Invokes the specified function while inhibiting Java errors, exceptions,
and unwrapping target exceptions.
|
Modifier and Type | Method and Description |
---|---|
default <V> EFunction<T,V,E> |
EFunction.andThen(EFunction<? super R,? extends V,E> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
default <V> EFunction<V,R,E> |
EFunction.compose(EFunction<? super V,? extends T,E> before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
Modifier and Type | Method and Description |
---|---|
default <V> EFunction<T,V,E> |
EFunction.andThen(EFunction<? super R,? extends V,E> after)
Returns a composed function that first applies this function to
its input, and then applies the
after function to the result. |
default <V> EFunction<V,R,E> |
EFunction.compose(EFunction<? super V,? extends T,E> before)
Returns a composed function that first applies the
before
function to its input, and then applies this function to the result. |
Copyright (C) 2015-2017 The Helenus Driver Project Authors.