net.ontopia.utils
Class DeciderFilter<T>

java.lang.Object
  extended by net.ontopia.utils.DeciderFilter<T>
All Implemented Interfaces:
FilterIF<T>

public class DeciderFilter<T>
extends java.lang.Object
implements FilterIF<T>

INTERNAL: Filter that filters a collection using a decider. The decider is applied to the individual objects in the collection. If the object is accepted by the decider it will become part of the result.


Field Summary
protected  DeciderIF<T> decider
           
 
Constructor Summary
DeciderFilter(DeciderIF<T> decider)
           
 
Method Summary
 java.util.Collection<T> filter(java.util.Iterator<T> objects)
          INTERNAL: Filters the input iterator and returns a collection containing a subset of the iterator's elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decider

protected DeciderIF<T> decider
Constructor Detail

DeciderFilter

public DeciderFilter(DeciderIF<T> decider)
Method Detail

filter

public java.util.Collection<T> filter(java.util.Iterator<T> objects)
Description copied from interface: FilterIF
INTERNAL: Filters the input iterator and returns a collection containing a subset of the iterator's elements.

Specified by:
filter in interface FilterIF<T>


Copyright © 2000-2012 Ontopia.