Modul speiger.src.collections
Klasse LongShortImmutablePair
java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongShortImmutablePair
- Alle implementierten Schnittstellen:
LongShortPair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.longs.misc.pairs.LongShortPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorLongShortImmutablePair(long key, short value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanlongshortinthashCode()set(long key, short value) Sets key and value of the PairsetLongKey(long key) Sets the Key of the Pair.setShortValue(short value) Sets the Value of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
LongShortImmutablePair
public LongShortImmutablePair()Default Constructor -
LongShortImmutablePair
public LongShortImmutablePair(long key, short value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setLongKey
Beschreibung aus Schnittstelle kopiert:LongShortPairSets the Key of the Pair.- Angegeben von:
setLongKeyin SchnittstelleLongShortPair- Parameter:
key- the key that should be set.- Gibt zurück:
- self or a new Pair instance with the new key.
-
getLongKey
public long getLongKey()- Angegeben von:
getLongKeyin SchnittstelleLongShortPair- Gibt zurück:
- the Key of the Pair
-
setShortValue
Beschreibung aus Schnittstelle kopiert:LongShortPairSets the Value of the Pair.- Angegeben von:
setShortValuein SchnittstelleLongShortPair- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getShortValue
public short getShortValue()- Angegeben von:
getShortValuein SchnittstelleLongShortPair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:LongShortPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleLongShortPair- 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:LongShortPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleLongShortPair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-