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