Class DistinctIterator<T>
java.lang.Object
org.cyclops.cyclopscore.datastructure.DistinctIterator<T>
- Type Parameters:
T
- The type to iterate over.
- All Implemented Interfaces:
Iterator<T>
An iterator that wraps around another iterator and only outputs unique items.
-
Constructor Summary
ConstructorDescriptionDistinctIterator
(Iterator<T> it) DistinctIterator
(Iterator<T> it, boolean identity) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining