public class Association
extends java.lang.Object
implements java.util.Map.Entry
Purpose: Generic association object. This can be used to map hashtable/map containers where the key and value primitives or independent objects.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
key |
protected java.lang.Object |
value |
Constructor and Description |
---|
Association()
Default constructor.
|
Association(java.lang.Object key,
java.lang.Object value)
PUBLIC:
Create an association.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKey()
PUBLIC:
Return the key.
|
java.lang.Object |
getValue()
PUBLIC:
Return the value.
|
void |
setKey(java.lang.Object key)
PUBLIC:
Set the key.
|
java.lang.Object |
setValue(java.lang.Object value)
PUBLIC:
Set the value.
|
public Association()
public Association(java.lang.Object key, java.lang.Object value)
public java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public java.lang.Object getValue()
getValue
in interface java.util.Map.Entry
public void setKey(java.lang.Object key)
public java.lang.Object setValue(java.lang.Object value)
setValue
in interface java.util.Map.Entry