info.aduna.collections.iterators
Class DistinctIterator<E>

java.lang.Object
  extended by info.aduna.iteration.CloseableIterationBase<E,X>
      extended by info.aduna.iteration.IterationWrapper<E,X>
          extended by info.aduna.iteration.FilterIteration<E,X>
              extended by info.aduna.iteration.DistinctIteration<E,RuntimeException>
                  extended by 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.


Field Summary
 
Fields inherited from class info.aduna.iteration.IterationWrapper
wrappedIter
 
Fields inherited from class info.aduna.iteration.CloseableIterationBase
logger
 
Constructor Summary
DistinctIterator(Iterator<? extends E> iter)
          Creates a new DistinctIterator.
 
Method Summary
 
Methods inherited from class info.aduna.iteration.DistinctIteration
accept, handleClose
 
Methods inherited from class info.aduna.iteration.FilterIteration
hasNext, next
 
Methods inherited from class info.aduna.iteration.IterationWrapper
remove
 
Methods inherited from class info.aduna.iteration.CloseableIterationBase
close, isClosed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.aduna.collections.iterators.CloseableIterator
close
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

DistinctIterator

public DistinctIterator(Iterator<? extends E> iter)
Creates a new DistinctIterator.

Parameters:
iter - The underlying iterator.


Copyright © 1997-2008 Aduna. All Rights Reserved.