Modul speiger.src.collections
Klasse LongObjectImmutablePair<V>
java.lang.Object
speiger.src.collections.longs.misc.pairs.impl.LongObjectImmutablePair<V>
- Typparameter:
V- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
LongObjectPair<V>
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.longs.misc.pairs.LongObjectPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorLongObjectImmutablePair(long key, V value) Key/Value Constructur -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanlonggetValue()inthashCode()Sets key and value of the PairsetLongKey(long key) Sets the Key of the Pair.Sets the Value of the Pair.Clones the Pair if it is mutable.toString()
-
Konstruktordetails
-
LongObjectImmutablePair
public LongObjectImmutablePair()Default Constructor -
LongObjectImmutablePair
Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setLongKey
Beschreibung aus Schnittstelle kopiert:LongObjectPairSets the Key of the Pair.- Angegeben von:
setLongKeyin SchnittstelleLongObjectPair<V>- 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 SchnittstelleLongObjectPair<V>- Gibt zurück:
- the Key of the Pair
-
setValue
Beschreibung aus Schnittstelle kopiert:LongObjectPairSets the Value of the Pair.- Angegeben von:
setValuein SchnittstelleLongObjectPair<V>- Parameter:
value- the value that should be set.- Gibt zurück:
- self or a new Pair instance with the new value.
-
getValue
- Angegeben von:
getValuein SchnittstelleLongObjectPair<V>- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:LongObjectPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleLongObjectPair<V>- 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:LongObjectPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleLongObjectPair<V>- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-