Class UniqueIterator<T>

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

    public class UniqueIterator<T>
    extends Object
    implements Iterable<T>, Iterator<T>
    Ensures elements coming from iterator are unique. Doesn't support element removal. Iterator elements are required for fulfil the contract of hashCode() and equals() methods