public interface ConsumerInvoker extends Supports<Consumer<?>>
Consumer that may take into account
automatic argument conversion, return values, and other situations that might be specific to a particular use-case.| Modifier and Type | Method and Description |
|---|---|
<T> T |
invoke(Consumer<?> consumer,
java.lang.Class<? extends T> returnType,
java.lang.Object possibleArg)
Invoke a
Consumer. |
<T> T invoke(Consumer<?> consumer, java.lang.Class<? extends T> returnType, java.lang.Object possibleArg) throws java.lang.Exception
Consumer.T - The return type.consumer - The Consumer to invoke.returnType - If the Consumer also implements a value-returning type, convert it to this type before
returning.possibleArg - Possible argument that may or may not be used.java.lang.Exception