Class LinkedListMultimap.ValueForKeyIterator

java.lang.Object
com.google.common.collect.LinkedListMultimap.ValueForKeyIterator
All Implemented Interfaces:
Iterator<V>, ListIterator<V>
Enclosing class:
LinkedListMultimap<K,V>

private class LinkedListMultimap.ValueForKeyIterator extends Object implements ListIterator<V>
A ListIterator over values for a specified key.
  • Field Details

  • Constructor Details

    • ValueForKeyIterator

      ValueForKeyIterator(K key)
      Constructs a new iterator over all values for the specified key.
    • ValueForKeyIterator

      public ValueForKeyIterator(K key, int index)
      Constructs a new iterator over all values for the specified key starting at the specified index. This constructor is optimized so that it starts at either the head or the tail, depending on which is closer to the specified index. This allows adds to the tail to be done in constant time.
      Throws:
      IndexOutOfBoundsException - if index is invalid
  • Method Details