|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.Association<K,V>
public class Association<K,V>
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(K key,
V value)
Initialize the new instance with a key an a value. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Association()
public Association(K key,
V value)
| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entry<K,V>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<K,V>hashCode in class java.lang.Objectpublic 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.ObjectObject.toString()public K getKey()
getKey in interface java.util.Map.Entry<K,V>Map.Entry.getKey()public V getValue()
getValue in interface java.util.Map.Entry<K,V>Map.Entry.getValue()public V setValue(V value)
setValue in interface java.util.Map.Entry<K,V>Map.Entry.setValue(java.lang.Object)public Association<K,V> copyAssociation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||