Class DeltaSet.DeltaIterator

  • All Implemented Interfaces:
    Iterator
    Enclosing class:
    DeltaSet

    protected class DeltaSet.DeltaIterator
    extends Object
    implements Iterator
    Iterator for the contents of a delta set.
    • Constructor Detail

      • DeltaIterator

        protected DeltaIterator()
        Construct an iterator for a delta set.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if the iteration has more elements.
        Specified by:
        hasNext in interface Iterator
      • remove

        public void remove()
        Removes from the underlying Collection the last element returned by the Iterator . This method can be called only once per call to next The behavior of an Iterator is unspecified if the underlying Collection is modified while the iteration is in progress in any way other than by calling this method. Optional operation.
        Specified by:
        remove in interface Iterator
        Throws:
        IllegalStateException - next has not yet been called, or remove has already been called after the last call to next.