This project has retired. For details please refer to its
Attic page.
org.apache.excalibur.event.impl
Class NullEnqueuePredicate
java.lang.Object
org.apache.excalibur.event.impl.NullEnqueuePredicate
- All Implemented Interfaces:
- EnqueuePredicate
- public final class NullEnqueuePredicate
- extends java.lang.Object
- implements EnqueuePredicate
The NullEnqueuePredicate does nothing to limit a Queue's ability to enqueue.
- Author:
- Avalon Development Team
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 |
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.
Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.