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