Class CharArrayMap.EntryIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.util.Map.Entry<java.lang.Object,​V>>
    Enclosing class:
    CharArrayMap<V>

    public class CharArrayMap.EntryIterator
    extends java.lang.Object
    implements java.util.Iterator<java.util.Map.Entry<java.lang.Object,​V>>
    public iterator class so efficient methods are exposed to users
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V currentValue()
      returns the value associated with the last key returned
      boolean hasNext()  
      java.util.Map.Entry<java.lang.Object,​V> next()
      use nextCharArray() + currentValue() for better efficiency.
      char[] nextKey()
      gets the next key...
      java.lang.String nextKeyString()
      gets the next key as a newly created String object
      void remove()  
      V setValue​(V value)
      sets the value associated with the last key returned
      • Methods inherited from class java.lang.Object

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

        forEachRemaining
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.util.Map.Entry<java.lang.Object,​V>>
      • nextKey

        public char[] nextKey()
        gets the next key... do not modify the returned char[]
      • nextKeyString

        public java.lang.String nextKeyString()
        gets the next key as a newly created String object
      • currentValue

        public V currentValue()
        returns the value associated with the last key returned
      • setValue

        public V setValue​(V value)
        sets the value associated with the last key returned
      • next

        public java.util.Map.Entry<java.lang.Object,​V> next()
        use nextCharArray() + currentValue() for better efficiency.
        Specified by:
        next in interface java.util.Iterator<java.util.Map.Entry<java.lang.Object,​V>>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.util.Map.Entry<java.lang.Object,​V>>