edu.stanford.nlp.util
Class Filters.ConjFilter<T>

java.lang.Object
  extended by edu.stanford.nlp.util.Filters.ConjFilter<T>
All Implemented Interfaces:
Filter<T>, Serializable
Enclosing class:
Filters

public static class Filters.ConjFilter<T>
extends Object
implements Filter<T>

Conjunction of a list of filters.

See Also:
Serialized Form

Constructor Summary
Filters.ConjFilter(Filter<T>... filters)
           
Filters.ConjFilter(List<Filter<T>> filters)
           
 
Method Summary
 boolean accept(T obj)
          Checks if the given object passes the filter.
 void addFilter(Filter<T> filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Filters.ConjFilter

public Filters.ConjFilter(List<Filter<T>> filters)

Filters.ConjFilter

public Filters.ConjFilter(Filter<T>... filters)
Method Detail

addFilter

public void addFilter(Filter<T> filter)

accept

public boolean accept(T obj)
Description copied from interface: Filter
Checks if the given object passes the filter.

Specified by:
accept in interface Filter<T>
Parameters:
obj - an object to test
Returns:
Whether the object should be accepted (for some processing)


Stanford NLP Group