Modul speiger.src.collections
Klasse ObjectByteMutablePair<T>
java.lang.Object
speiger.src.collections.objects.misc.pairs.impl.ObjectByteMutablePair<T>
- Typparameter:
T- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
ObjectBytePair<T>
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.objects.misc.pairs.ObjectBytePair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorObjectByteMutablePair(T key, byte value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbytegetKey()inthashCode()Sets key and value of the PairsetByteValue(byte value) Sets the Value of the Pair.Sets the Key of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
ObjectByteMutablePair
public ObjectByteMutablePair()Default Constructor -
ObjectByteMutablePair
Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setKey
Beschreibung aus Schnittstelle kopiert:ObjectBytePairSets the Key of the Pair.- Angegeben von:
setKeyin SchnittstelleObjectBytePair<T>- Parameter:
key- the key that should be set.- Gibt zurück:
- self or a new Pair instance with the new key.
-
getKey
- Angegeben von:
getKeyin SchnittstelleObjectBytePair<T>- Gibt zurück:
- the Key of the Pair
-
setByteValue
Beschreibung aus Schnittstelle kopiert:ObjectBytePairSets the Value of the Pair.- Angegeben von:
setByteValuein SchnittstelleObjectBytePair<T>- 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 SchnittstelleObjectBytePair<T>- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:ObjectBytePairSets key and value of the Pair- Angegeben von:
setin SchnittstelleObjectBytePair<T>- 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:ObjectBytePairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleObjectBytePair<T>- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-