org.apache.excalibur.event.impl
Class NullEnqueuePredicate

java.lang.Object
  extended byorg.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

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

NullEnqueuePredicate

public NullEnqueuePredicate()
Method Detail

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 enqueue
modifyingSink - 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 enqueue
modifyingSink - 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.