public static class AbstractChar2IntMap.BasicEntry extends Object implements Char2IntMap.Entry
This class does not implement setValue(), as the modification would not be reflected in the base map.
| Constructor and Description |
|---|
BasicEntry(Character key,
Integer value) |
BasicEntry(char key,
int value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
char |
getCharKey()
Returns the key corresponding to this entry.
|
int |
getIntValue()
Returns the value corresponding to this entry.
|
Character |
getKey()
Deprecated.
Please use the corresponding type-specific method
instead.
|
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 Character getKey()
public char getCharKey()
Char2IntMap.EntrygetCharKey in interface Char2IntMap.EntryMap.Entry.getKey()@Deprecated public Integer getValue()
public int getIntValue()
Char2IntMap.EntrygetIntValue in interface Char2IntMap.EntryMap.Entry.getValue()public int setValue(int value)
Char2IntMap.EntrysetValue in interface Char2IntMap.EntryMap.Entry.setValue(Object)@Deprecated public Integer setValue(Integer value)
public boolean equals(Object o)
public int hashCode()