Modul speiger.src.collections
Klasse LongFloatImmutablePair
java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongFloatImmutablePair
- Alle implementierten Schnittstellen:
LongFloatPair
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.longs.misc.pairs.LongFloatPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorLongFloatImmutablePair(long key, float value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanfloatlonginthashCode()set(long key, float value) Sets key and value of the PairsetFloatValue(float 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
-
LongFloatImmutablePair
public LongFloatImmutablePair()Default Constructor -
LongFloatImmutablePair
public LongFloatImmutablePair(long key, float value) Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setLongKey
Beschreibung aus Schnittstelle kopiert:LongFloatPairSets the Key of the Pair.- Angegeben von:
setLongKeyin SchnittstelleLongFloatPair- 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 SchnittstelleLongFloatPair- Gibt zurück:
- the Key of the Pair
-
setFloatValue
Beschreibung aus Schnittstelle kopiert:LongFloatPairSets the Value of the Pair.- Angegeben von:
setFloatValuein SchnittstelleLongFloatPair- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getFloatValue
public float getFloatValue()- Angegeben von:
getFloatValuein SchnittstelleLongFloatPair- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:LongFloatPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleLongFloatPair- 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:LongFloatPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleLongFloatPair- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-