public class ComposedCallbackBuilder extends Object
To compose a series of callbacks, you must first create an instance of this class, add all required callbacks, and finally get the composed callback, which will invoke (in order) the callbacks.
| Constructor and Description |
|---|
ComposedCallbackBuilder()
Creates a new, empty callback composer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Callback callback)
Adds a new callback to this builder.
|
void |
add(int position,
Callback callback)
Adds a new callback to this builder at a specified position.
|
Callback |
compose()
Returns the composed callback produced by this builder.
|
boolean |
isEmpty()
Checks whether this callback builder is empty.
|
int |
size()
Returns the number of callbacks in this builder.
|
public ComposedCallbackBuilder()
public void add(int position,
Callback callback)
position - a position in the current callback list.callback - a callback.public void add(Callback callback)
callback - a callback.public boolean isEmpty()
public int size()
public Callback compose()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.