Class OpenHashMap.MapIterator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int curr
      The last entry that was returned (or -1 if we did not iterate or used Iterator.remove()).
      (package private) int index
      The current index (in the sense of a ListIterator).
      (package private) int next
      The entry that will be returned by the next call to ListIterator.next() (or null if no next entry exists).
      (package private) int prev
      The entry that will be returned by the next call to ListIterator.previous() (or null if no previous entry exists).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MapIterator()  
      private MapIterator​(java.lang.Object from)  
    • Field Detail

      • prev

        int prev
        The entry that will be returned by the next call to ListIterator.previous() (or null if no previous entry exists).
      • next

        int next
        The entry that will be returned by the next call to ListIterator.next() (or null if no next entry exists).
      • curr

        int curr
        The last entry that was returned (or -1 if we did not iterate or used Iterator.remove()).
      • index

        int index
        The current index (in the sense of a ListIterator). Note that this value is not meaningful when this iterator has been created using the nonempty constructor.
    • Constructor Detail

      • MapIterator

        private MapIterator()
      • MapIterator

        private MapIterator​(java.lang.Object from)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • hasPrevious

        public boolean hasPrevious()
      • ensureIndexKnown

        private void ensureIndexKnown()
      • nextIndex

        public int nextIndex()
      • previousIndex

        public int previousIndex()
      • nextEntry

        public int nextEntry()
      • previousEntry

        public int previousEntry()
      • remove

        public void remove()
      • skip

        public int skip​(int n)
      • back

        public int back​(int n)