public static class AbstractObject2IntMap.BasicEntry<K> extends java.lang.Object implements Object2IntMap.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,
int value) |
BasicEntry(K key,
java.lang.Integer value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getIntValue()
Returns the value corresponding to this entry.
|
K |
getKey() |
int |
hashCode() |
int |
setValue(int value)
Replaces the value corresponding to this entry with the specified value (optional operation).
|
java.lang.String |
toString() |
getValue, setValue
public BasicEntry()
public BasicEntry(K key, java.lang.Integer value)
public BasicEntry(K key, int value)
public int getIntValue()
Object2IntMap.Entry
getIntValue
in interface Object2IntMap.Entry<K>
Map.Entry.getValue()
public int setValue(int value)
Object2IntMap.Entry
setValue
in interface Object2IntMap.Entry<K>
Map.Entry.setValue(Object)
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map.Entry<K,java.lang.Integer>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Map.Entry<K,java.lang.Integer>
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object