|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.text.CounterFilter
This filter counts occurences of objects, and returns a list of object-frequency pairs.
| Constructor Summary | |
CounterFilter(Filter nextFilter)
Creates a new instance and sets the next filter in the chain. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CounterFilter(Filter nextFilter)
nextFilter - next filter in the filter chain| Method Detail |
public java.util.Iterator apply(java.lang.Object seed)
apply in interface Filterseed - object on which the filter is applied
Filter.apply(java.lang.Object)public java.util.Iterator apply(java.util.Iterator iterator)
This method first calls the next filter in the filter chain (if existing), and then applies this filter on the specified iterator.
apply in interface Filteriterator - iterator over objects on which the filter is applied
Filter.apply(java.util.Iterator)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||