public static class AbstractDouble2DoubleMap.BasicEntry extends java.lang.Object implements Double2DoubleMap.Entry
| Constructor and Description |
|---|
BasicEntry()
A basic Empty constructor
|
BasicEntry(double key,
double value)
A Type Specific Constructor
|
BasicEntry(java.lang.Double key,
java.lang.Double 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
|
double |
getDoubleValue()
Type Specific getValue method that reduces boxing/unboxing
|
int |
hashCode() |
void |
set(double key,
double value)
A Helper method for fast replacing values
|
double |
setValue(double value)
Type Specific setValue method that reduces boxing/unboxing
|
java.lang.String |
toString() |
getKey, getValue, setValuepublic BasicEntry()
public BasicEntry(java.lang.Double key,
java.lang.Double value)
key - the key of a entryvalue - the value of a entrypublic BasicEntry(double key,
double value)
key - the key of a entryvalue - the value of a entrypublic void set(double key,
double value)
key - the key that should be replacedvalue - the value that should be replacedpublic double getDoubleKey()
Double2DoubleMap.EntrygetDoubleKey in interface Double2DoubleMap.Entrypublic double getDoubleValue()
Double2DoubleMap.EntrygetDoubleValue in interface Double2DoubleMap.Entrypublic double setValue(double value)
Double2DoubleMap.EntrysetValue in interface Double2DoubleMap.Entryvalue - the new Value that should be placed in the given entrypublic boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entry<java.lang.Double,java.lang.Double>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Double,java.lang.Double>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object