Class Int2IntHashMap.EntryIterator

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

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

      • EntryIterator

        public EntryIterator()
    • Method Detail

      • getKey

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

        public int getIntKey()
        Returns the key of the current entry.
        Returns:
        the key.
      • getValue

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

        public int getIntValue()
        Returns the value of the current entry.
        Returns:
        the value.
      • setValue

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

        public int setValue​(int 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.Integer,​java.lang.Integer> next()
        Specified by:
        next in interface java.util.Iterator<java.util.Map.Entry<java.lang.Integer,​java.lang.Integer>>
      • allocateDuplicateEntry

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

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry<java.lang.Integer,​java.lang.Integer>
        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.Integer,​java.lang.Integer>
        Overrides:
        equals in class java.lang.Object