org.rapla.components.util.iterator
Class FilterIterator

java.lang.Object
  extended by org.rapla.components.util.iterator.FilterIterator
All Implemented Interfaces:
Iterator

public abstract class FilterIterator
extends Object
implements Iterator

Filters the objects of an Iterator by overiding the isInIterator method


Constructor Summary
FilterIterator(Iterator it)
           
 
Method Summary
 boolean hasNext()
           
protected abstract  boolean isInIterator(Object obj)
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterIterator

public FilterIterator(Iterator it)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

isInIterator

protected abstract boolean isInIterator(Object obj)

remove

public void remove()
Specified by:
remove in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator


Copyright 2000-2006 Rapla Team. All Rights Reseserved.