Modul speiger.src.collections
Klasse ShortObjectMutablePair<V>
java.lang.Object
speiger.src.collections.shorts.misc.pairs.impl.ShortObjectMutablePair<V>
- Typparameter:
V- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
ShortObjectPair<V>
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.shorts.misc.pairs.ShortObjectPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorShortObjectMutablePair(short key, V value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanshortgetValue()inthashCode()Sets key and value of the PairsetShortKey(short key) Sets the Key of the Pair.Sets the Value of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
ShortObjectMutablePair
public ShortObjectMutablePair()Default Constructor -
ShortObjectMutablePair
Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setShortKey
Beschreibung aus Schnittstelle kopiert:ShortObjectPairSets the Key of the Pair.- Angegeben von:
setShortKeyin SchnittstelleShortObjectPair<V>- Parameter:
key- the key that should be set.- Gibt zurück:
- self or a new Pair instance with the new key.
-
getShortKey
public short getShortKey()- Angegeben von:
getShortKeyin SchnittstelleShortObjectPair<V>- Gibt zurück:
- the Key of the Pair
-
setValue
Beschreibung aus Schnittstelle kopiert:ShortObjectPairSets the Value of the Pair.- Angegeben von:
setValuein SchnittstelleShortObjectPair<V>- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getValue
- Angegeben von:
getValuein SchnittstelleShortObjectPair<V>- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:ShortObjectPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleShortObjectPair<V>- 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:ShortObjectPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleShortObjectPair<V>- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-