info.aduna.collections.iterators
Class DistinctIterator<E>
java.lang.Object
info.aduna.iteration.CloseableIterationBase<E,X>
info.aduna.iteration.IterationWrapper<E,X>
info.aduna.iteration.FilterIteration<E,X>
info.aduna.iteration.DistinctIteration<E,RuntimeException>
info.aduna.collections.iterators.DistinctIterator<E>
- All Implemented Interfaces:
- CloseableIterator<E>, CloseableIteration<E,RuntimeException>, Iteration<E,RuntimeException>, Closeable, Iterator<E>
public class DistinctIterator<E>
- extends DistinctIteration<E,RuntimeException>
- implements CloseableIterator<E>
An Iterator that filters any duplicate elements from an underlying iterator.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistinctIterator
public DistinctIterator(Iterator<? extends E> iter)
- Creates a new DistinctIterator.
- Parameters:
iter - The underlying iterator.
Copyright © 1997-2008 Aduna. All Rights Reserved.