info.aduna.collections.iterators
Class FilterIterator<E>
java.lang.Object
info.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.IterationWrapper<E,X>
info.aduna.iteration.FilterIteration<E,RuntimeException>
info.aduna.collections.iterators.FilterIterator<E>
- All Implemented Interfaces:
- CloseableIterator<E>, CloseableIteration<E,RuntimeException>, Iteration<E,RuntimeException>, Closeable, Iterator<E>
public abstract class FilterIterator<E>
- extends FilterIteration<E,RuntimeException>
- implements CloseableIterator<E>
A CloseableIterator that wraps another iterator, applying a filter on the
objects that are returned. Subclasses must implement the accept
method to indicate which objects should be returned.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilterIterator
public FilterIterator(Iterator<? extends E> iter)
- Parameters:
iter -
Copyright © 1997-2008 Aduna. All Rights Reserved.