Class Long2LongHashMap.EntryIterator

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

    public final class Long2LongHashMap.EntryIterator
    extends Long2LongHashMap.AbstractIterator
    implements java.util.Iterator<java.util.Map.Entry<java.lang.Long,​java.lang.Long>>, java.util.Map.Entry<java.lang.Long,​java.lang.Long>
    Iterator over entries which supports access to unboxed keys and values.
    • Constructor Detail

      • EntryIterator

        public EntryIterator()
        Create a new instance.
    • Method Detail

      • getKey

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

        public long getLongKey()
        Returns the key of the current entry.
        Returns:
        the key.
      • getValue

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

        public long getLongValue()
        Returns the value of the current entry.
        Returns:
        the value.
      • setValue

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

        public long setValue​(long value)
        Sets the value of the current entry.
        Parameters:
        value - to be set.
        Returns:
        previous value of the entry.
      • next

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

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

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry<java.lang.Long,​java.lang.Long>
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Map.Entry<java.lang.Long,​java.lang.Long>
        Overrides:
        equals in class java.lang.Object