Class RestrictedValueSortedMap.RestrictedValueListIterator

  • All Implemented Interfaces:
    java.util.Iterator<V>, java.util.ListIterator<V>
    Enclosing class:
    RestrictedValueSortedMap<K,​V>

    public class RestrictedValueSortedMap.RestrictedValueListIterator
    extends java.lang.Object
    implements java.util.ListIterator<V>
    A list iterator suitable for List.listIterator(), etc., on the values of a RestrictedValueSortedMap
    • Constructor Detail

      • RestrictedValueListIterator

        public RestrictedValueListIterator()
        Construct an iterator
      • RestrictedValueListIterator

        public RestrictedValueListIterator​(int start)
        Construct an iterator starting at a given index of the sub list.
        Parameters:
        start - initial iterator position
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<V>
        Specified by:
        hasNext in interface java.util.ListIterator<V>
      • next

        public V next()
        Specified by:
        next in interface java.util.Iterator<V>
        Specified by:
        next in interface java.util.ListIterator<V>
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface java.util.ListIterator<V>
      • previous

        public V previous()
        Specified by:
        previous in interface java.util.ListIterator<V>
      • nextIndex

        public int nextIndex()
        Specified by:
        nextIndex in interface java.util.ListIterator<V>
      • previousIndex

        public int previousIndex()
        Specified by:
        previousIndex in interface java.util.ListIterator<V>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<V>
        Specified by:
        remove in interface java.util.ListIterator<V>
      • set

        public void set​(V e)
        Specified by:
        set in interface java.util.ListIterator<V>
      • add

        public void add​(V e)
        Specified by:
        add in interface java.util.ListIterator<V>