public static class AbstractShort2LongMap.BasicEntry extends Object implements Short2LongMap.Entry
This class does not implement setValue()
, as the modification
would not be reflected in the base map.
Constructor and Description |
---|
BasicEntry(short key,
long value) |
BasicEntry(Short key,
Long value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Short |
getKey() |
long |
getLongValue() |
short |
getShortKey() |
Long |
getValue() |
int |
hashCode() |
long |
setValue(long value) |
Long |
setValue(Long value) |
String |
toString() |
comparingByKey, comparingByKey, comparingByValue, comparingByValue
public short getShortKey()
getShortKey
in interface Short2LongMap.Entry
Map.Entry.getKey()
public long getLongValue()
getLongValue
in interface Short2LongMap.Entry
Map.Entry.getValue()
public long setValue(long value)
setValue
in interface Short2LongMap.Entry
Map.Entry.setValue(Object)
public boolean equals(Object o)
public int hashCode()