Modul speiger.src.collections
Klasse LongIntImmutablePair
java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongIntImmutablePair
- Alle implementierten Schnittstellen:
LongIntPair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.longs.misc.pairs.LongIntPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorLongIntImmutablePair(long key, int value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanintlonginthashCode()set(long key, int value) Sets key and value of the PairsetIntValue(int value) Sets the Value of the Pair.setLongKey(long key) Sets the Key of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
LongIntImmutablePair
public LongIntImmutablePair()Default Constructor -
LongIntImmutablePair
public LongIntImmutablePair(long key, int value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setLongKey
Beschreibung aus Schnittstelle kopiert:LongIntPairSets the Key of the Pair.- Angegeben von:
setLongKeyin SchnittstelleLongIntPair- 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 SchnittstelleLongIntPair- Gibt zurück:
- the Key of the Pair
-
setIntValue
Beschreibung aus Schnittstelle kopiert:LongIntPairSets the Value of the Pair.- Angegeben von:
setIntValuein SchnittstelleLongIntPair- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getIntValue
public int getIntValue()- Angegeben von:
getIntValuein SchnittstelleLongIntPair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:LongIntPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleLongIntPair- 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:LongIntPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleLongIntPair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-