de.unidu.is.text
Interface Filter

All Known Implementing Classes:
AbstractFilter, CounterFilter, WordConcatenatorFilter, WordSetConcatenatorFilter

public interface Filter

A filter is used to modify objects (in most cases, objects) in a uniform way. The filter converts an object into a list of other objects, represented by an iterator. In addition, a filter can be called with an iterator; then, the filter is applied on each object returned by the filter.

Since:
2003-07-03
Version:
$Revision: 1.6 $, $Date: 2005/02/21 17:29:28 $
Author:
Henrik Nottelmann

Method Summary
 java.util.Iterator apply(java.util.Iterator iterator)
          Applies this filter on each object returned by the specified iterator.
 java.util.Iterator apply(java.lang.Object seed)
          Applies this filter on the specified single object.
 

Method Detail

apply

public java.util.Iterator apply(java.lang.Object seed)
Applies this filter on the specified single object.

Parameters:
seed - object on which the filter is applied
Returns:
iterator over the resulting objects

apply

public java.util.Iterator apply(java.util.Iterator iterator)
Applies this filter on each object returned by the specified iterator.

Parameters:
iterator - iterator over objects on which the filter is applied
Returns:
iterator over the resulting objects