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 Object
implements EnqueuePredicate

The NullEnqueuePredicate does nothing to limit a Queue's ability to enqueue.


Constructor Summary
NullEnqueuePredicate()
           
 
Method Summary
 boolean accept(Object[] element, Sink modifyingSink)
          Tests the given element for acceptance onto the m_sink.
 boolean accept(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

NullEnqueuePredicate

public NullEnqueuePredicate()
Method Detail

accept

public boolean accept(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 enqueue
Returns:
true if the sink accepts the element; false otherwise.

accept

public boolean accept(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 enqueue
Returns:
true if the sink accepts all the elements; false otherwise.


Copyright © 2002 Apache Avalon Project. All Rights Reserved.