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