public class SwitchedEnqueuePredicate extends java.lang.Object implements EnqueuePredicate
CommandManager
code.| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_isAccepting |
| Constructor and Description |
|---|
SwitchedEnqueuePredicate()
Create a SwitchedEnqueuePredicate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
Tell this EnqueuePredicate to start allowing new events to be
enqueued.
|
boolean |
accept(java.lang.Object[] elements,
Sink modifyingSink)
Tests the given element for acceptance onto the m_sink.
|
boolean |
accept(java.lang.Object element,
Sink modifyingSink)
Tests the given element for acceptance onto the m_sink.
|
void |
block()
Tell this EnqueuePredicate to start blocking new events to be
enqueued.
|
java.lang.String |
toString() |
public SwitchedEnqueuePredicate()
accept(java.lang.Object, org.d_haven.event.Sink) method.public boolean accept(java.lang.Object element,
Sink modifyingSink)
accept in interface EnqueuePredicateelement - The element to enqueuemodifyingSink - The sink that is used for this predicatetrue if the sink accepts the element;
false otherwise.public boolean accept(java.lang.Object[] elements,
Sink modifyingSink)
accept in interface EnqueuePredicateelements - The array of elements to enqueuemodifyingSink - The sink that is used for this predicatetrue if the sink accepts all the elements;
false otherwise.public void block()
public void accept()
public java.lang.String toString()
toString in class java.lang.Object