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()
Returns the value corresponding to this entry.
|
Long |
getKey()
Deprecated.
Please use the corresponding type-specific method
instead.
|
long |
getLongKey()
Returns the key corresponding to this entry.
|
Integer |
getValue()
Deprecated.
Please use the corresponding type-specific method
instead.
|
int |
hashCode() |
int |
setValue(int value)
Replaces the value corresponding to this entry with the specified
value (optional operation).
|
Integer |
setValue(Integer value)
Deprecated.
Please use the corresponding type-specific method
instead.
|
String |
toString() |
comparingByKey, comparingByKey, comparingByValue, comparingByValue@Deprecated public Long getKey()
public long getLongKey()
Long2IntMap.EntrygetLongKey in interface Long2IntMap.EntryMap.Entry.getKey()@Deprecated public Integer getValue()
public int getIntValue()
Long2IntMap.EntrygetIntValue in interface Long2IntMap.EntryMap.Entry.getValue()public int setValue(int value)
Long2IntMap.EntrysetValue in interface Long2IntMap.EntryMap.Entry.setValue(Object)@Deprecated public Integer setValue(Integer value)
public boolean equals(Object o)
public int hashCode()