org.apache.commons.collections.iterators
Class UniqueFilterIterator
java.lang.Object
org.apache.commons.collections.iterators.FilterIterator
org.apache.commons.collections.iterators.UniqueFilterIterator
- All Implemented Interfaces:
- Iterator
public class UniqueFilterIterator
- extends FilterIterator
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: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
- Author:
- Morgan Delagrange
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UniqueFilterIterator
public UniqueFilterIterator(Iterator iterator)
- Constructs a new
UniqueFilterIterator
.
- Parameters:
iterator
- the iterator to use
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.