Class UniqueFilterIterator<E>
java.lang.Object
org.apache.commons.collections4.iterators.FilterIterator<E>
org.apache.commons.collections4.iterators.UniqueFilterIterator<E>
- Type Parameters:
- E- the type of elements returned by this iterator.
- All Implemented Interfaces:
- Iterator<E>,- IteratorOperations<E>
A FilterIterator which only returns "unique" Objects.  Internally,
 the Iterator maintains a Set of objects it has already encountered,
 and duplicate Objects are skipped.
- Since:
- 2.1
- 
Constructor SummaryConstructorsConstructorDescriptionUniqueFilterIterator(Iterator<? extends E> iterator) Constructs a newUniqueFilterIterator.
- 
Method SummaryMethods inherited from class org.apache.commons.collections4.iterators.FilterIteratorgetIterator, getPredicate, hasNext, next, remove, setIterator, setPredicateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemainingMethods inherited from interface org.apache.commons.collections4.iterators.IteratorOperationsaddTo, removeNext, toCollection, toList, toSet
- 
Constructor Details- 
UniqueFilterIteratorConstructs a newUniqueFilterIterator.- Parameters:
- iterator- the iterator to use
 
 
-