org.apache.commons.collections15.iterators
Class UniqueFilterIterator<E>
java.lang.Object
org.apache.commons.collections15.iterators.FilterIterator<E>
org.apache.commons.collections15.iterators.UniqueFilterIterator<E>
- All Implemented Interfaces:
- Iterator<E>
public class UniqueFilterIterator<E>
- extends FilterIterator<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:
- Commons Collections 2.1
- Version:
- $Revision: 1.1 $ $Date: 2005/10/11 17:05:24 $
- Author:
- Matt Hall, John Watkinson, Morgan Delagrange
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueFilterIterator
public UniqueFilterIterator(Iterator<E> iterator)
- Constructs a new
UniqueFilterIterator
.
- Parameters:
iterator
- the iterator to use
Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.