net.sourceforge.hiveevents
Class PassAllFilter<T>

java.lang.Object
  extended by net.sourceforge.hiveevents.PassAllFilter<T>
All Implemented Interfaces:
Filter<T>

public class PassAllFilter<T>
extends java.lang.Object
implements Filter<T>

Dummy filter that lets ANY event pass.

Used as the default filter for consumers that register with no filter.

Author:
Jean-Francois Poilpret

Constructor Summary
PassAllFilter()
           
 
Method Summary
 boolean passEvent(T event)
          Check if an event must pass to the consumer or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassAllFilter

public PassAllFilter()
Method Detail

passEvent

public boolean passEvent(T event)
Description copied from interface: Filter
Check if an event must pass to the consumer or not.

Specified by:
passEvent in interface Filter<T>
Parameters:
event - the event to be checked
Returns:
true if the event must be notified to the consumer