Class AbstractMapBasedMultimap.WrappedCollection.WrappedIterator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Iterator<V> delegateIterator  
      (package private) java.util.Collection<V> originalDelegate  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.Iterator<V> getDelegateIterator()  
      boolean hasNext()  
      V next()  
      void remove()  
      (package private) void validateIterator()
      If the delegate changed since the iterator was created, the iterator is no longer valid.
      • 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

      • delegateIterator

        final java.util.Iterator<V> delegateIterator
      • originalDelegate

        final java.util.Collection<V> originalDelegate
    • Constructor Detail

      • WrappedIterator

        WrappedIterator()
      • WrappedIterator

        WrappedIterator​(java.util.Iterator<V> delegateIterator)
    • Method Detail

      • validateIterator

        void validateIterator()
        If the delegate changed since the iterator was created, the iterator is no longer valid.
      • hasNext

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

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

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

        java.util.Iterator<V> getDelegateIterator()