public class SimpleCallbackWrapper implements CallbackWrapper
This class is a simple implementation of interface CallbackWrapper.
It does nothing else than returning consumers and runnables as they are.
interface CallbackWrapper| Constructor and Description |
|---|
SimpleCallbackWrapper()
This class is a simple implementation of
interface CallbackWrapper. |
| Modifier and Type | Method and Description |
|---|---|
<T> Consumer<T> |
wrap(Consumer<T> consumer)
Wraps a
interface Consumer into a new one. |
java.lang.Runnable |
wrap(java.lang.Runnable runnable)
Wraps a Runnable into a new one.
|
wrap, wrappublic SimpleCallbackWrapper()
This class is a simple implementation of interface CallbackWrapper.
It does nothing else than returning consumers and runnables as they are.
interface CallbackWrapper@NotNull public <T> Consumer<T> wrap(@NotNull Consumer<T> consumer)
Wraps a interface Consumer into a new one.
T - The type of the interface Consumer parameter.consumer - The consumer to wrap.interface Consumer