Modul speiger.src.collections
Klasse AbstractChar2ShortMap.BasicEntry
java.lang.Object
speiger.src.collections.chars.maps.abstracts.AbstractChar2ShortMap.BasicEntry
- Alle implementierten Schnittstellen:
Map.Entry<Character,,Short> Char2ShortMap.Entry
- Bekannte direkte Unterklassen:
Char2ShortMaps.UnmodifyableEntry
- Umschließende Klasse:
AbstractChar2ShortMap
A Simple Type Specific Entry class to reduce boxing/unboxing
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungA basic Empty constructorBasicEntry(char key, short value) A Type Specific ConstructorBasicEntry(Character key, Short value) A Boxed Constructor for supporting java variants -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleancharType Specific getKey method that reduces boxing/unboxingshortType Specific getValue method that reduces boxing/unboxinginthashCode()voidset(char key, short value) A Helper method for fast replacing valuesshortsetValue(short value) Type Specific setValue method that reduces boxing/unboxingtoString()Von Schnittstelle geerbte Methoden speiger.src.collections.chars.maps.interfaces.Char2ShortMap.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(char key, short value) A Type Specific Constructor- Parameter:
key- the key of a entryvalue- the value of a entry
-
-
Methodendetails
-
set
public void set(char key, short value) A Helper method for fast replacing values- Parameter:
key- the key that should be replacedvalue- the value that should be replaced
-
getCharKey
public char getCharKey()Beschreibung aus Schnittstelle kopiert:Char2ShortMap.EntryType Specific getKey method that reduces boxing/unboxing- Angegeben von:
getCharKeyin SchnittstelleChar2ShortMap.Entry- Gibt zurück:
- the key of a given Entry
-
getShortValue
public short getShortValue()Beschreibung aus Schnittstelle kopiert:Char2ShortMap.EntryType Specific getValue method that reduces boxing/unboxing- Angegeben von:
getShortValuein SchnittstelleChar2ShortMap.Entry- Gibt zurück:
- the value of a given Entry
-
setValue
public short setValue(short value) Beschreibung aus Schnittstelle kopiert:Char2ShortMap.EntryType Specific setValue method that reduces boxing/unboxing- Angegeben von:
setValuein SchnittstelleChar2ShortMap.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
-