Modul speiger.src.collections
Klasse AbstractInt2DoubleMap.BasicEntry
java.lang.Object
speiger.src.collections.ints.maps.abstracts.AbstractInt2DoubleMap.BasicEntry
- Alle implementierten Schnittstellen:
Map.Entry<Integer,,Double> Int2DoubleMap.Entry
- Bekannte direkte Unterklassen:
Int2DoubleMaps.UnmodifyableEntry
- Umschließende Klasse:
AbstractInt2DoubleMap
A Simple Type Specific Entry class to reduce boxing/unboxing
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungA basic Empty constructorBasicEntry(int key, double value) A Type Specific ConstructorBasicEntry(Integer key, Double value) A Boxed Constructor for supporting java variants -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleandoubleType Specific getValue method that reduces boxing/unboxingintType Specific getKey method that reduces boxing/unboxinginthashCode()voidset(int key, double value) A Helper method for fast replacing valuesdoublesetValue(double value) Type Specific setValue method that reduces boxing/unboxingtoString()Von Schnittstelle geerbte Methoden speiger.src.collections.ints.maps.interfaces.Int2DoubleMap.Entry
getKey, getValue, setValue
-
Konstruktordetails
-
BasicEntry
public BasicEntry()A basic Empty constructor -
BasicEntry
A Boxed Constructor for supporting java variants- Parameter:
key- the key of a entryvalue- the value of a entry
-
BasicEntry
public BasicEntry(int key, double value) A Type Specific Constructor- Parameter:
key- the key of a entryvalue- the value of a entry
-
-
Methodendetails
-
set
public void set(int key, double value) A Helper method for fast replacing values- Parameter:
key- the key that should be replacedvalue- the value that should be replaced
-
getIntKey
public int getIntKey()Beschreibung aus Schnittstelle kopiert:Int2DoubleMap.EntryType Specific getKey method that reduces boxing/unboxing- Angegeben von:
getIntKeyin SchnittstelleInt2DoubleMap.Entry- Gibt zurück:
- the key of a given Entry
-
getDoubleValue
public double getDoubleValue()Beschreibung aus Schnittstelle kopiert:Int2DoubleMap.EntryType Specific getValue method that reduces boxing/unboxing- Angegeben von:
getDoubleValuein SchnittstelleInt2DoubleMap.Entry- Gibt zurück:
- the value of a given Entry
-
setValue
public double setValue(double value) Beschreibung aus Schnittstelle kopiert:Int2DoubleMap.EntryType Specific setValue method that reduces boxing/unboxing- Angegeben von:
setValuein SchnittstelleInt2DoubleMap.Entry- Parameter:
value- the new Value that should be placed in the given entry- Gibt zurück:
- the old value of a given entry
-
equals
-
hashCode
public int hashCode() -
toString
-