Class AbstractMapBasedMultimap.Itr<T>

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

    private abstract class AbstractMapBasedMultimap.Itr<T>
    extends java.lang.Object
    implements java.util.Iterator<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Collection<V> collection  
      (package private) K key  
      (package private) java.util.Iterator<java.util.Map.Entry<K,​java.util.Collection<V>>> keyIterator  
      (package private) java.util.Iterator<V> valueIterator  
    • Constructor Summary

      Constructors 
      Constructor Description
      Itr()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      T next()  
      (package private) abstract T output​(K key, V value)  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • keyIterator

        final java.util.Iterator<java.util.Map.Entry<K,​java.util.Collection<V>>> keyIterator
      • key

        K key
      • collection

        java.util.Collection<V> collection
      • valueIterator

        java.util.Iterator<V> valueIterator
    • Constructor Detail

      • Itr

        Itr()
    • Method Detail

      • output

        abstract T output​(K key,
                          V value)
      • hasNext

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

        public T next()
        Specified by:
        next in interface java.util.Iterator<T>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<T>