Package jetbrains.mps.util.iterable
Class DistinctIterator<T>
- java.lang.Object
 - 
- jetbrains.mps.util.iterable.DistinctIterator<T>
 
 
- 
public class DistinctIterator<T> extends Object implements Iterable<T>, Iterator<T>
Iterablewith filtering capability, each distinct element of initial sequence is reported only once. Note,nullelements get filtered out and are not reported at all. XXX why not ConditionalIterable with appropriate condition (although would need state-aware condition, to reset on each #iterator()) 
- 
- 
Constructor Summary
Constructors Constructor Description DistinctIterator(Iterable<T> inner) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Iterator<T>iterator()Tnext()protected TnextElement()voidremove()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface java.lang.Iterable
forEach, spliterator 
- 
Methods inherited from interface java.util.Iterator
forEachRemaining 
 - 
 
 - 
 
- 
- 
Method Detail
- 
nextElement
protected T nextElement()
 
 - 
 
 -