Modul speiger.src.collections
Klasse LongBooleanMutablePair
java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongBooleanMutablePair
- Alle implementierten Schnittstellen:
LongBooleanPair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.longs.misc.pairs.LongBooleanPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorLongBooleanMutablePair(long key, boolean value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbooleanlonginthashCode()set(long key, boolean value) Sets key and value of the PairsetBooleanValue(boolean 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
-
LongBooleanMutablePair
public LongBooleanMutablePair()Default Constructor -
LongBooleanMutablePair
public LongBooleanMutablePair(long key, boolean value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setLongKey
Beschreibung aus Schnittstelle kopiert:LongBooleanPairSets the Key of the Pair.- Angegeben von:
setLongKeyin SchnittstelleLongBooleanPair- 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 SchnittstelleLongBooleanPair- Gibt zurück:
- the Key of the Pair
-
setBooleanValue
Beschreibung aus Schnittstelle kopiert:LongBooleanPairSets the Value of the Pair.- Angegeben von:
setBooleanValuein SchnittstelleLongBooleanPair- 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 SchnittstelleLongBooleanPair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:LongBooleanPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleLongBooleanPair- 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:LongBooleanPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleLongBooleanPair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-