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