Modul speiger.src.collections
Klasse BooleanCharImmutablePair
java.lang.Object
speiger.src.collections.booleans.misc.pairs.impl.BooleanCharImmutablePair
- Alle implementierten Schnittstellen:
BooleanCharPair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.booleans.misc.pairs.BooleanCharPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorBooleanCharImmutablePair(boolean key, char value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbooleancharinthashCode()set(boolean key, char value) Sets key and value of the PairsetBooleanKey(boolean key) Sets the Key of the Pair.setCharValue(char value) Sets the Value of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
BooleanCharImmutablePair
public BooleanCharImmutablePair()Default Constructor -
BooleanCharImmutablePair
public BooleanCharImmutablePair(boolean key, char value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setBooleanKey
Beschreibung aus Schnittstelle kopiert:BooleanCharPairSets the Key of the Pair.- Angegeben von:
setBooleanKeyin SchnittstelleBooleanCharPair- Parameter:
key- the key that should be set.- Gibt zurück:
- self or a new Pair instance with the new key.
-
getBooleanKey
public boolean getBooleanKey()- Angegeben von:
getBooleanKeyin SchnittstelleBooleanCharPair- Gibt zurück:
- the Key of the Pair
-
setCharValue
Beschreibung aus Schnittstelle kopiert:BooleanCharPairSets the Value of the Pair.- Angegeben von:
setCharValuein SchnittstelleBooleanCharPair- 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 SchnittstelleBooleanCharPair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:BooleanCharPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleBooleanCharPair- 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:BooleanCharPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleBooleanCharPair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-