public class Association<K,V>
extends java.lang.Object
implements java.util.Map.Entry<K,V>, java.io.Serializable
Constructor and Description |
---|
Association()
Initialize the new instance with default values.
|
Association(K key,
V value)
Initialize the new instance with a key an a value.
|
Modifier and Type | Method and Description |
---|---|
Association<K,V> |
copyAssociation()
Returns a copy of this object
|
boolean |
equals(java.lang.Object obj) |
K |
getKey() |
V |
getValue() |
int |
hashCode() |
K |
key()
Returns the key of the association.
|
void |
key(K newKey)
Sets the key of the association.
|
V |
setValue(V value) |
java.lang.String |
toString()
Returns the toString() value of key and value separated by "->".
|
V |
value()
Returns the value of the association.
|
void |
value(V newValue)
Sets the value of the association.
|
public Association()
public boolean equals(java.lang.Object obj)
public int hashCode()
public K key()
public void key(K newKey)
public V value()
public void value(V newValue)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public K getKey()
public V getValue()
public Association<K,V> copyAssociation()