All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.nlp.util.Filter Maven / Gradle / Ivy

package edu.stanford.nlp.util;

import java.io.Serializable;


/**
 * Filter is an interface for predicate objects which respond to the
 * accept method.
 *
 * @author Dan Klein
 * @version 1.0
 */
public interface Filter  extends Serializable {

  /**
   * Checks if the given object passes the filter.
   *
   * @param obj an object to test
   * @return Whether the object should be accepted (for some processing)
   */
  public boolean accept(T obj);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy