public static class AbstractInt2ObjectMap.BasicEntry<V> extends java.lang.Object implements Int2ObjectMap.Entry<V>
This class does not implement
setValue(), as the
modification would not be reflected in the base map.
| Constructor and Description |
|---|
BasicEntry(java.lang.Integer key,
V value) |
BasicEntry(int key,
V value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getIntKey() |
java.lang.Integer |
getKey()
Deprecated.
Please use the corresponding type-specific method
instead.
|
V |
getValue() |
int |
hashCode() |
V |
setValue(V value) |
java.lang.String |
toString() |
protected int key
protected V value
public BasicEntry(java.lang.Integer key,
V value)
public BasicEntry(int key,
V value)
@Deprecated public java.lang.Integer getKey()
getKey in interface Int2ObjectMap.Entry<V>getKey in interface java.util.Map.Entry<java.lang.Integer,V>public int getIntKey()
getIntKey in interface Int2ObjectMap.Entry<V>Map.Entry#getKey()public V getValue()
getValue in interface java.util.Map.Entry<java.lang.Integer,V>public V setValue(V value)
setValue in interface java.util.Map.Entry<java.lang.Integer,V>public boolean equals(java.lang.Object o)
equals in interface java.util.Map.Entry<java.lang.Integer,V>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Integer,V>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object