Class DistinctIterator<T>

  • All Implemented Interfaces:
    Iterable<T>, Iterator<T>

    public class DistinctIterator<T>
    extends Object
    implements Iterable<T>, Iterator<T>
    Iterable with filtering capability, each distinct element of initial sequence is reported only once. Note, null elements 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())