edu.stanford.nlp.util
Interface Filter<T>

All Superinterfaces:
Serializable
All Known Implementing Classes:
ArabicTreeNormalizer.ArabicEmptyFilter, BobChrisTreeNormalizer.AOverAFilter, BobChrisTreeNormalizer.EmptyFilter, Dependencies.DependentPuncTagRejectFilter, Dependencies.DependentPuncWordRejectFilter, FrenchTreeNormalizer.FrenchAOverAFilter

public interface Filter<T>
extends Serializable

Filter is an interface for predicate objects which respond to the accept method.

Author:
Dan Klein

Method Summary
 boolean accept(T obj)
          Checks if the given object passes the filter.
 

Method Detail

accept

boolean accept(T obj)
Checks if the given object passes the filter.

Parameters:
obj - an object to test
Returns:
Whether the object should be accepted (for some processing)


Stanford NLP Group