org.d_haven.event.command
public class SwitchedEnqueuePredicate extends Object implements EnqueuePredicate
Field Summary | |
---|---|
boolean | m_isAccepting |
Constructor Summary | |
---|---|
SwitchedEnqueuePredicate()
Create a SwitchedEnqueuePredicate. |
Method Summary | |
---|---|
boolean | accept(Object element, Sink modifyingSink)
Tests the given element for acceptance onto the m_sink.
|
boolean | accept(Object[] elements, Sink modifyingSink)
Tests the given element for acceptance onto the m_sink.
|
void | accept()
Tell this EnqueuePredicate to start allowing new events to be
enqueued. |
void | block()
Tell this EnqueuePredicate to start blocking new events to be
enqueued. |
String | toString() |
Parameters: element The element to enqueue modifyingSink The sink that is used for this predicate
Returns: true
if the sink accepts the element;
false
otherwise.
Since: Feb 10, 2003
Parameters: elements The array of elements to enqueue modifyingSink The sink that is used for this predicate
Returns: true
if the sink accepts all the elements;
false
otherwise.
Since: Feb 10, 2003