Modul speiger.src.collections
Klasse LongDoubleMutablePair
java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongDoubleMutablePair
- Alle implementierten Schnittstellen:
LongDoublePair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.longs.misc.pairs.LongDoublePair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorLongDoubleMutablePair(long key, double value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleandoublelonginthashCode()set(long key, double value) Sets key and value of the PairsetDoubleValue(double 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
-
LongDoubleMutablePair
public LongDoubleMutablePair()Default Constructor -
LongDoubleMutablePair
public LongDoubleMutablePair(long key, double value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setLongKey
Beschreibung aus Schnittstelle kopiert:LongDoublePairSets the Key of the Pair.- Angegeben von:
setLongKeyin SchnittstelleLongDoublePair- 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 SchnittstelleLongDoublePair- Gibt zurück:
- the Key of the Pair
-
setDoubleValue
Beschreibung aus Schnittstelle kopiert:LongDoublePairSets the Value of the Pair.- Angegeben von:
setDoubleValuein SchnittstelleLongDoublePair- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getDoubleValue
public double getDoubleValue()- Angegeben von:
getDoubleValuein SchnittstelleLongDoublePair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:LongDoublePairSets key and value of the Pair- Angegeben von:
setin SchnittstelleLongDoublePair- 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:LongDoublePairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleLongDoublePair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-