public static class AbstractShort2FloatMap.BasicEntry extends java.lang.Object implements Short2FloatMap.Entry
| Constructor and Description |
|---|
BasicEntry()
A basic Empty constructor
|
BasicEntry(short key,
float value)
A Type Specific Constructor
|
BasicEntry(java.lang.Short key,
java.lang.Float value)
A Boxed Constructor for supporting java variants
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
float |
getFloatValue()
Type Specific getValue method that reduces boxing/unboxing
|
short |
getShortKey()
Type Specific getKey method that reduces boxing/unboxing
|
int |
hashCode() |
void |
set(short key,
float value)
A Helper method for fast replacing values
|
float |
setValue(float value)
Type Specific setValue method that reduces boxing/unboxing
|
java.lang.String |
toString() |
getKey, getValue, setValuepublic BasicEntry()
public BasicEntry(java.lang.Short key,
java.lang.Float value)
key - the key of a entryvalue - the value of a entrypublic BasicEntry(short key,
float value)
key - the key of a entryvalue - the value of a entrypublic void set(short key,
float value)
key - the key that should be replacedvalue - the value that should be replacedpublic short getShortKey()
Short2FloatMap.EntrygetShortKey in interface Short2FloatMap.Entrypublic float getFloatValue()
Short2FloatMap.EntrygetFloatValue in interface Short2FloatMap.Entrypublic float setValue(float value)
Short2FloatMap.EntrysetValue in interface Short2FloatMap.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.Short,java.lang.Float>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Short,java.lang.Float>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object