Class AbstractListValuedMap.ValuesListIterator

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

    private class AbstractListValuedMap.ValuesListIterator
    extends java.lang.Object
    implements java.util.ListIterator<V>
    Values ListIterator
    • Field Detail

      • key

        private final K key
      • values

        private java.util.List<V> values
      • iterator

        private java.util.ListIterator<V> iterator
    • Constructor Detail

      • ValuesListIterator

        public ValuesListIterator​(K key)
      • ValuesListIterator

        public ValuesListIterator​(K key,
                                  int index)
    • Method Detail

      • add

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

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

        public boolean hasPrevious()
        Specified by:
        hasPrevious 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>
      • nextIndex

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

        public V previous()
        Specified by:
        previous 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 value)
        Specified by:
        set in interface java.util.ListIterator<V>