|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.Association
public class Association
Simple association of a key object and a value object.
Access to key and value is provided by
| Constructor Summary | |
|---|---|
Association()
Initialize the new instance with default values. |
|
Association(java.lang.Object key,
java.lang.Object value)
Initialize the new instance with a key an a value. |
|
| Method Summary | |
|---|---|
Association |
copyAssociation()
Returns a copy of this object |
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
getKey()
|
java.lang.Object |
getValue()
|
int |
hashCode()
|
java.lang.Object |
key()
Returns the key of the association. |
void |
key(java.lang.Object newKey)
Sets the key of the association. |
java.lang.Object |
setValue(java.lang.Object value)
|
java.lang.String |
toString()
Returns the toString() value of key and value separated by "->". |
java.lang.Object |
value()
Returns the value of the association. |
void |
value(java.lang.Object newValue)
Sets the value of the association. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Association()
public Association(java.lang.Object key,
java.lang.Object value)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entryequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.EntryhashCode in class java.lang.Objectpublic java.lang.Object key()
public void key(java.lang.Object newKey)
public java.lang.Object value()
public void value(java.lang.Object newValue)
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.Object getKey()
getKey in interface java.util.Map.EntryMap.Entry.getKey()public java.lang.Object getValue()
getValue in interface java.util.Map.EntryMap.Entry.getValue()public java.lang.Object setValue(java.lang.Object value)
setValue in interface java.util.Map.EntryMap.Entry.setValue(java.lang.Object)public Association copyAssociation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||