Modul speiger.src.collections
Klasse IntObjectImmutablePair<V>
java.lang.Object
speiger.src.collections.ints.misc.pairs.impl.IntObjectImmutablePair<V>
- Typparameter:
V- the keyType of elements maintained by this Collection
- Alle implementierten Schnittstellen:
IntObjectPair<V>
Mutable Pair Implementation that
-
Feldübersicht
Von Schnittstelle geerbte Felder speiger.src.collections.ints.misc.pairs.IntObjectPair
EMPTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault ConstructorIntObjectImmutablePair(int key, V value) Key/Value Constructur -
Methodenübersicht
-
Konstruktordetails
-
IntObjectImmutablePair
public IntObjectImmutablePair()Default Constructor -
IntObjectImmutablePair
Key/Value Constructur- Parameter:
key- the key of the Pairvalue- the value of the Pair
-
-
Methodendetails
-
setIntKey
Beschreibung aus Schnittstelle kopiert:IntObjectPairSets the Key of the Pair.- Angegeben von:
setIntKeyin SchnittstelleIntObjectPair<V>- Parameter:
key- the key that should be set.- Gibt zurück:
- self or a new Pair instance with the new key.
-
getIntKey
public int getIntKey()- Angegeben von:
getIntKeyin SchnittstelleIntObjectPair<V>- Gibt zurück:
- the Key of the Pair
-
setValue
Beschreibung aus Schnittstelle kopiert:IntObjectPairSets the Value of the Pair.- Angegeben von:
setValuein SchnittstelleIntObjectPair<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 SchnittstelleIntObjectPair<V>- Gibt zurück:
- the Value of the Pair
-
set
Beschreibung aus Schnittstelle kopiert:IntObjectPairSets key and value of the Pair- Angegeben von:
setin SchnittstelleIntObjectPair<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:IntObjectPairClones the Pair if it is mutable.- Angegeben von:
shallowCopyin SchnittstelleIntObjectPair<V>- Gibt zurück:
- a New Mutable Instance if it is mutable
-
equals
-
hashCode
public int hashCode() -
toString
-