Modul speiger.src.collections
Klasse DoubleCharImmutablePair
java.lang.Object
speiger.src.collections.doubles.misc.pairs.impl.DoubleCharImmutablePair
- Alle implementierten Schnittstellen:
DoubleCharPair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.doubles.misc.pairs.DoubleCharPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorDoubleCharImmutablePair(double key, char value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanchardoubleinthashCode()set(double key, char value) Sets key and value of the PairsetCharValue(char value) Sets the Value of the Pair.setDoubleKey(double key) Sets the Key of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
DoubleCharImmutablePair
public DoubleCharImmutablePair()Default Constructor -
DoubleCharImmutablePair
public DoubleCharImmutablePair(double key, char value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setDoubleKey
Beschreibung aus Schnittstelle kopiert:DoubleCharPairSets the Key of the Pair.- Angegeben von:
setDoubleKeyin SchnittstelleDoubleCharPair- Parameter:
key- the key that should be set.- Gibt zurück:
- self or a new Pair instance with the new key.
-
getDoubleKey
public double getDoubleKey()- Angegeben von:
getDoubleKeyin SchnittstelleDoubleCharPair- Gibt zurück:
- the Key of the Pair
-
setCharValue
Beschreibung aus Schnittstelle kopiert:DoubleCharPairSets the Value of the Pair.- Angegeben von:
setCharValuein SchnittstelleDoubleCharPair- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getCharValue
public char getCharValue()- Angegeben von:
getCharValuein SchnittstelleDoubleCharPair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:DoubleCharPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleDoubleCharPair- 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:DoubleCharPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleDoubleCharPair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-