Modul speiger.src.collections
Klasse AbstractLong2IntMap.BasicEntry
java.lang.Object
speiger.src.collections.longs.maps.abstracts.AbstractLong2IntMap.BasicEntry
- Alle implementierten Schnittstellen:
Map.Entry<Long,,Integer> Long2IntMap.Entry
- Bekannte direkte Unterklassen:
Long2IntMaps.UnmodifyableEntry
- Umschließende Klasse:
AbstractLong2IntMap
A Simple Type Specific Entry class to reduce boxing/unboxing
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungA basic Empty constructorBasicEntry(long key, int value) A Type Specific ConstructorBasicEntry(Long key, Integer value) A Boxed Constructor for supporting java variants -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanintType Specific getValue method that reduces boxing/unboxinglongType Specific getKey method that reduces boxing/unboxinginthashCode()voidset(long key, int value) A Helper method for fast replacing valuesintsetValue(int value) Type Specific setValue method that reduces boxing/unboxingtoString()Von Schnittstelle geerbte Methoden speiger.src.collections.longs.maps.interfaces.Long2IntMap.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(long key, int value) A Type Specific Constructor- Parameter:
key- the key of a entryvalue- the value of a entry
-
-
Methodendetails
-
set
public void set(long key, int value) A Helper method for fast replacing values- Parameter:
key- the key that should be replacedvalue- the value that should be replaced
-
getLongKey
public long getLongKey()Beschreibung aus Schnittstelle kopiert:Long2IntMap.EntryType Specific getKey method that reduces boxing/unboxing- Angegeben von:
getLongKeyin SchnittstelleLong2IntMap.Entry- Gibt zurück:
- the key of a given Entry
-
getIntValue
public int getIntValue()Beschreibung aus Schnittstelle kopiert:Long2IntMap.EntryType Specific getValue method that reduces boxing/unboxing- Angegeben von:
getIntValuein SchnittstelleLong2IntMap.Entry- Gibt zurück:
- the value of a given Entry
-
setValue
public int setValue(int value) Beschreibung aus Schnittstelle kopiert:Long2IntMap.EntryType Specific setValue method that reduces boxing/unboxing- Angegeben von:
setValuein SchnittstelleLong2IntMap.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
-