|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.mg4j.util.parser.callback.ComposedCallbackBuilder
dsiutils
.
@Deprecated public class ComposedCallbackBuilder
A builder for composed callbacks.
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 Summary | |
---|---|
ComposedCallbackBuilder()
Deprecated. Creates a new, empty callback composer. |
Method Summary | |
---|---|
void |
add(Callback callback)
Deprecated. Adds a new callback to this builder. |
void |
add(int position,
Callback callback)
Deprecated. Adds a new callback to this builder at a specified position. |
Callback |
compose()
Deprecated. Returns the composed callback produced by this builder. |
boolean |
isEmpty()
Deprecated. Checks whether this callback builder is empty. |
int |
size()
Deprecated. Returns the number of callbacks in this builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComposedCallbackBuilder()
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |