public interface RoleCaller
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RoleCaller.ThrowingRunnable<E extends Throwable>
A runnable that can throw an exception.
|
static interface |
RoleCaller.ThrowingSupplier<V,E extends Throwable>
A function that can throw an exception.
|
| Modifier and Type | Method and Description |
|---|---|
<V> V |
call(Supplier<V> supplier)
Calls a function that returns a value.
|
void |
run(Runnable runnable)
Calls an runnable that returns no value.
|
<V,E extends Throwable> |
throwingCall(RoleCaller.ThrowingSupplier<V,E> supplier)
Calls a function that returns a value and may throw an exception.
|
<E extends Throwable> |
throwingRun(RoleCaller.ThrowingRunnable<E> runnable)
Calls an runnable that returns no value and may throw an exception.
|
<V> V call(Supplier<V> supplier)
V - the type of the returned value.supplier - the function to be called.supplier.void run(Runnable runnable)
runnable - the runnable to be called.<V,E extends Throwable> V throwingCall(RoleCaller.ThrowingSupplier<V,E> supplier) throws E extends Throwable
V - the type of the returned value.E - the type of the throwable exception.supplier - the function to be called.supplier.E - if the supplier throws an exception.E extends Throwable<E extends Throwable> void throwingRun(RoleCaller.ThrowingRunnable<E> runnable) throws E extends Throwable
E - the type of the throwable exception.runnable - the runnable to be called.E - if the runnable throws an exception.E extends ThrowableCopyright © 2016. All rights reserved.