C
- the callback typeA
- the primary argument typepublic static final class LambdaSafe.Callbacks<C,A> extends Object
Modifier and Type | Method and Description |
---|---|
void |
invoke(Consumer<C> invoker)
Invoke the callback instances where the callback method returns void.
|
<R> Stream<R> |
invokeAnd(Function<C,R> invoker)
Invoke the callback instances where the callback method returns a result.
|
public void invoke(Consumer<C> invoker)
invoker
- the invoker used to invoke the callbackpublic <R> Stream<R> invokeAnd(Function<C,R> invoker)
R
- the result typeinvoker
- the invoker used to invoke the callbackCopyright © 2020 Pivotal Software, Inc.. All rights reserved.