org.d_haven.event.impl
Class NullEnqueuePredicate
java.lang.Object
org.d_haven.event.impl.NullEnqueuePredicate
- All Implemented Interfaces:
- EnqueuePredicate
public final class NullEnqueuePredicate
- extends java.lang.Object
- implements EnqueuePredicate
The NullEnqueuePredicate does nothing to limit a Pipe's ability to
enqueue.
Method Summary |
boolean |
accept(java.lang.Object[] element,
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullEnqueuePredicate
public NullEnqueuePredicate()
accept
public boolean accept(java.lang.Object element,
Sink modifyingSink)
- Description copied from interface:
EnqueuePredicate
- Tests the given element for acceptance onto the m_sink.
- Specified by:
accept
in interface EnqueuePredicate
- Parameters:
element
- The element to enqueuemodifyingSink
- The sink that is used for this predicate
- Returns:
true
if the sink accepts the element;
false
otherwise.
accept
public boolean accept(java.lang.Object[] element,
Sink modifyingSink)
- Description copied from interface:
EnqueuePredicate
- Tests the given element for acceptance onto the m_sink.
- Specified by:
accept
in interface EnqueuePredicate
- Parameters:
element
- The array of elements to enqueuemodifyingSink
- The sink that is used for this predicate
- Returns:
true
if the sink accepts all the elements;
false
otherwise.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object