Class MapAdapter.Iterator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Iterator iterator  
      private java.util.Map.Entry nextEntry  
    • Constructor Summary

      Constructors 
      Constructor Description
      Iterator​(java.util.Iterator iterator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean atEntry()
      Returns true if the iterator points to an entry in the map.
      java.lang.Object getKey()
      Returns the key at the current map entry.
      java.lang.Object getValue()
      Returns the value at the current map entry.
      void next()
      Advance the iterator to the next entry.
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • iterator

        private java.util.Iterator iterator
      • nextEntry

        private java.util.Map.Entry nextEntry
    • Constructor Detail

      • Iterator

        Iterator​(java.util.Iterator iterator)
    • Method Detail

      • atEntry

        public boolean atEntry()
        Description copied from interface: ConstMapIterator
        Returns true if the iterator points to an entry in the map.
        Specified by:
        atEntry in interface ConstMapIterator
        Returns:
        true if the iterator points to an entry in the map
      • getKey

        public java.lang.Object getKey()
        Description copied from interface: ConstMapIterator
        Returns the key at the current map entry.
        Specified by:
        getKey in interface ConstMapIterator
        Returns:
        the key at the current map entry
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: ConstMapIterator
        Returns the value at the current map entry.
        Specified by:
        getValue in interface ConstMapIterator
        Returns:
        the value at the current map entry