public static class AbstractShort2IntMap.BasicEntry extends Object implements Short2IntMap.Entry
This class does not implement setValue(), as the modification
would not be reflected in the base map.
| Modifier and Type | Field and Description |
|---|---|
protected short |
key |
protected int |
value |
| Constructor and Description |
|---|
BasicEntry() |
BasicEntry(short key,
int value) |
BasicEntry(Short key,
Integer value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getIntValue()
Returns the value corresponding to this entry.
|
short |
getShortKey()
Returns the key corresponding to this entry.
|
int |
hashCode() |
int |
setValue(int value)
Replaces the value corresponding to this entry with the specified value (optional operation).
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetKey, getValue, setValuecomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic BasicEntry()
public BasicEntry(short key,
int value)
public short getShortKey()
Short2IntMap.EntrygetShortKey in interface Short2IntMap.EntryMap.Entry.getKey()public int getIntValue()
Short2IntMap.EntrygetIntValue in interface Short2IntMap.EntryMap.Entry.getValue()public int setValue(int value)
Short2IntMap.EntrysetValue in interface Short2IntMap.EntryMap.Entry.setValue(Object)public boolean equals(Object o)
public int hashCode()
Copyright © 2020. All rights reserved.