Long2ReferenceMap.Entry<V>, java.util.Map.Entry<java.lang.Long,V>public static class AbstractLong2ReferenceMap.BasicEntry<V> extends java.lang.Object implements Long2ReferenceMap.Entry<V>
This class does not implement setValue(), as the modification would not be reflected in the base map.
| Constructor | Description |
|---|---|
BasicEntry() |
|
BasicEntry(long key,
V value) |
|
BasicEntry(java.lang.Long key,
V value) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
long |
getLongKey() |
Returns the key corresponding to this entry.
|
V |
getValue() |
|
int |
hashCode() |
|
V |
setValue(V value) |
|
java.lang.String |
toString() |
getKeypublic BasicEntry()
public BasicEntry(java.lang.Long key,
V value)
public BasicEntry(long key,
V value)
public long getLongKey()
Long2ReferenceMap.EntrygetLongKey in interface Long2ReferenceMap.Entry<V>Map.Entry.getKey()public V getValue()
getValue in interface java.util.Map.Entry<java.lang.Long,V>public V setValue(V value)
setValue in interface java.util.Map.Entry<java.lang.Long,V>public boolean equals(java.lang.Object o)
equals in interface java.util.Map.Entry<java.lang.Long,V>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Long,V>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object