Interface Long2LongMap.Entry

All Superinterfaces:
Map.Entry<Long,​Long>
All Known Implementing Classes:
AbstractLong2LongMap.BasicEntry
Enclosing interface:
Long2LongMap

public static interface Long2LongMap.Entry
extends Map.Entry<Long,​Long>
A type-specific Map.Entry; provides some additional methods that use polymorphism to avoid (un)boxing.
See Also:
Map.Entry
  • Method Summary

    Modifier and Type Method Description
    default Long getKey()
    Deprecated.
    Please use the corresponding type-specific method instead.
    long getLongKey()
    Returns the key corresponding to this entry.
    long getLongValue()
    Returns the value corresponding to this entry.
    default Long getValue()
    Deprecated.
    Please use the corresponding type-specific method instead.
    long setValue​(long value)
    Replaces the value corresponding to this entry with the specified value (optional operation).
    default Long setValue​(Long value)
    Deprecated.
    Please use the corresponding type-specific method instead.

    Methods inherited from interface java.util.Map.Entry

    equals, hashCode
  • Method Details

    • getLongKey

      long getLongKey()
      Returns the key corresponding to this entry.
      See Also:
      Map.Entry.getKey()
    • getKey

      @Deprecated default Long getKey()
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      getKey in interface Map.Entry<Long,​Long>
    • getLongValue

      long getLongValue()
      Returns the value corresponding to this entry.
      See Also:
      Map.Entry.getValue()
    • setValue

      long setValue​(long value)
      Replaces the value corresponding to this entry with the specified value (optional operation).
      See Also:
      Map.Entry.setValue(Object)
    • getValue

      @Deprecated default Long getValue()
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      getValue in interface Map.Entry<Long,​Long>
    • setValue

      @Deprecated default Long setValue​(Long value)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      setValue in interface Map.Entry<Long,​Long>