public interface RoleCaller
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RoleCaller.ThrowingRunnable
A runnable that can throw an exception.
|
static interface |
RoleCaller.ThrowingSupplier<V>
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> V |
throwingCall(RoleCaller.ThrowingSupplier<V> supplier)
Calls a function that returns a value and may throw an exception.
|
void |
throwingRun(RoleCaller.ThrowingRunnable 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> V throwingCall(RoleCaller.ThrowingSupplier<V> supplier) throws Throwable
V - the type of the returned value.supplier - the function to be called.supplier.Throwable - if the supplier throws an exception.void throwingRun(RoleCaller.ThrowingRunnable runnable) throws Throwable
runnable - the runnable to be called.Throwable - if the runnable throws an exception.Copyright © 2015. All rights reserved.