V - the keyType of elements maintained by this Collectionpublic static class AbstractDouble2ObjectMap.BasicEntry<V> extends java.lang.Object implements Double2ObjectMap.Entry<V>
| Constructor and Description |
|---|
BasicEntry()
A basic Empty constructor
|
BasicEntry(double key,
V value)
A Type Specific Constructor
|
BasicEntry(java.lang.Double key,
V value)
A Boxed Constructor for supporting java variants
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getDoubleKey()
Type Specific getKey method that reduces boxing/unboxing
|
V |
getValue() |
int |
hashCode() |
void |
set(double key,
V value)
A Helper method for fast replacing values
|
V |
setValue(V value) |
java.lang.String |
toString() |
getKeypublic BasicEntry()
public BasicEntry(java.lang.Double key,
V value)
key - the key of a entryvalue - the value of a entrypublic BasicEntry(double key,
V value)
key - the key of a entryvalue - the value of a entrypublic void set(double key,
V value)
key - the key that should be replacedvalue - the value that should be replacedpublic double getDoubleKey()
Double2ObjectMap.EntrygetDoubleKey in interface Double2ObjectMap.Entry<V>public V getValue()
getValue in interface java.util.Map.Entry<java.lang.Double,V>public V setValue(V value)
setValue in interface java.util.Map.Entry<java.lang.Double,V>public boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entry<java.lang.Double,V>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Double,V>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object