|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.excalibur.event.impl.NullEnqueuePredicate
The NullEnqueuePredicate does nothing to limit a Queue's ability to enqueue.
Constructor Summary | |
NullEnqueuePredicate()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullEnqueuePredicate()
Method Detail |
public boolean accept(java.lang.Object element, Sink modifyingSink)
EnqueuePredicate
accept
in interface EnqueuePredicate
element
- The element to enqueuemodifyingSink
- The sink that is used for this predicate
true
if the sink accepts the element;
false
otherwise.public boolean accept(java.lang.Object[] element, Sink modifyingSink)
EnqueuePredicate
accept
in interface EnqueuePredicate
element
- The array of elements to enqueuemodifyingSink
- The sink that is used for this predicate
true
if the sink accepts all the elements;
false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |