org.fusesource.common.util
Class CompositeFilter<T>

java.lang.Object
  extended by org.fusesource.common.util.CompositeFilter<T>
All Implemented Interfaces:
Filter<T>

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

Represents a filter which ORs together a collection of filters, returning true if any of the filters are true


Constructor Summary
CompositeFilter(java.util.Collection<Filter<T>> filters)
           
 
Method Summary
 boolean isEmpty()
           
 boolean matches(T t)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeFilter

public CompositeFilter(java.util.Collection<Filter<T>> filters)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

matches

public boolean matches(T t)
Specified by:
matches in interface Filter<T>

isEmpty

public boolean isEmpty()


Copyright © 2014 Red Hat. All Rights Reserved.