Class Long2ObjectHashMap.EntryIterator

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

    public final class Long2ObjectHashMap.EntryIterator
    extends Long2ObjectHashMap.AbstractIterator<java.util.Map.Entry<java.lang.Long,​V>>
    implements java.util.Map.Entry<java.lang.Long,​V>
    Iterator over entries which supports access to unboxed keys via getLongKey().
    • Constructor Detail

      • EntryIterator

        public EntryIterator()
    • Method Detail

      • next

        public java.util.Map.Entry<java.lang.Long,​V> next()
        Specified by:
        next in interface java.util.Iterator<java.util.Map.Entry<java.lang.Long,​V>>
        Specified by:
        next in class Long2ObjectHashMap.AbstractIterator<java.util.Map.Entry<java.lang.Long,​V>>
      • allocateDuplicateEntry

        private java.util.Map.Entry<java.lang.Long,​V> allocateDuplicateEntry()
      • getKey

        public java.lang.Long getKey()
        Specified by:
        getKey in interface java.util.Map.Entry<java.lang.Long,​V>
      • getLongKey

        public long getLongKey()
        Get key without boxing.
        Returns:
        key.
      • getValue

        public V getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<java.lang.Long,​V>
      • setValue

        public V setValue​(V value)
        Specified by:
        setValue in interface java.util.Map.Entry<java.lang.Long,​V>