FileDocCategorySizeDatePackage
Association.javaAPI DocGlassfish v2 API3140Tue May 22 16:54:46 BST 2007oracle.toplink.essentials.mappings

Association

public class Association extends Object implements Map$Entry

Purpose: Generic association object. This can be used to map hashtable/map containers where the key and value primitives or independent objects.

author
James Sutherland
since
TOPLink/Java 3.0

Fields Summary
protected Object
key
protected Object
value
Constructors Summary
public Association()
Default constructor.

        super();
    
public Association(Object key, Object value)
PUBLIC: Create an association.

        this.key = key;
        this.value = value;
    
Methods Summary
public java.lang.ObjectgetKey()
PUBLIC: Return the key.

        return key;
    
public java.lang.ObjectgetValue()
PUBLIC: Return the value.

        return value;
    
public voidsetKey(java.lang.Object key)
PUBLIC: Set the key.

        this.key = key;
    
public java.lang.ObjectsetValue(java.lang.Object value)
PUBLIC: Set the value.

        Object oldValue = this.value;
        this.value = value;
        return oldValue;