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() |
BasicEntry(K key,
long value) |
BasicEntry(K key,
Long value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
K |
getKey() |
long |
getLongValue()
Returns the value corresponding to this entry.
|
int |
hashCode() |
long |
setValue(long value)
Replaces the value corresponding to this entry with the specified value (optional operation).
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, setValuecomparingByKey, comparingByKey, comparingByValue, comparingByValueprotected K key
protected long value
public BasicEntry()
public BasicEntry(K key, long value)
public long getLongValue()
Object2LongMap.EntrygetLongValue in interface Object2LongMap.Entry<K>Map.Entry.getValue()public long setValue(long value)
Object2LongMap.EntrysetValue in interface Object2LongMap.Entry<K>Map.Entry.setValue(Object)public boolean equals(Object o)
public int hashCode()
Copyright © 2020. All rights reserved.