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