Modul speiger.src.collections
Klasse CharByteImmutablePair
java.lang.Object
speiger.src.collections.chars.misc.pairs.impl.CharByteImmutablePair
- Alle implementierten Schnittstellen:
CharBytePair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.chars.misc.pairs.CharBytePair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorCharByteImmutablePair(char key, byte value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbytecharinthashCode()set(char key, byte value) Sets key and value of the PairsetByteValue(byte value) Sets the Value of the Pair.setCharKey(char key) Sets the Key of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
CharByteImmutablePair
public CharByteImmutablePair()Default Constructor -
CharByteImmutablePair
public CharByteImmutablePair(char key, byte value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setCharKey
Beschreibung aus Schnittstelle kopiert:CharBytePairSets the Key of the Pair.- Angegeben von:
setCharKeyin SchnittstelleCharBytePair- Parameter:
key- the key that should be set.- Gibt zurück:
- self or a new Pair instance with the new key.
-
getCharKey
public char getCharKey()- Angegeben von:
getCharKeyin SchnittstelleCharBytePair- Gibt zurück:
- the Key of the Pair
-
setByteValue
Beschreibung aus Schnittstelle kopiert:CharBytePairSets the Value of the Pair.- Angegeben von:
setByteValuein SchnittstelleCharBytePair- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getByteValue
public byte getByteValue()- Angegeben von:
getByteValuein SchnittstelleCharBytePair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:CharBytePairSets key and value of the Pair- Angegeben von:
setin SchnittstelleCharBytePair- Parameter:
key- the key that should be set.value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new key and value.
-
shallowCopy
Beschreibung aus Schnittstelle kopiert:CharBytePairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleCharBytePair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-