|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.Association
org.pf.util.NamedValue
public class NamedValue
This specialized Association allows only strings as key.
Access to key and value is provided by
| Constructor Summary | |
|---|---|
NamedValue(java.lang.String name)
Initialize the new instance with a name and a null value. |
|
NamedValue(java.lang.String name,
java.lang.Object value)
Initialize the new instance with a name and an associated value. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object obj)
Compares this object with the specified object for order. |
NamedValue |
copyNamedValue()
Returns a copy of this object |
void |
key(java.lang.Object newKey)
Sets the key of the association. |
void |
key(java.lang.String newKey)
Sets the key (name) of the association. |
java.lang.String |
name()
Returns the name (key) of the association. |
void |
name(java.lang.String newName)
Sets the name (key) of the association. |
| Methods inherited from class org.pf.util.Association |
|---|
copyAssociation, equals, getKey, getValue, hashCode, key, setValue, toString, value, value |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NamedValue(java.lang.String name)
public NamedValue(java.lang.String name,
java.lang.Object value)
| Method Detail |
|---|
public void key(java.lang.Object newKey)
key in class Associationpublic void key(java.lang.String newKey)
newKey - The new key (must not be null !)public void name(java.lang.String newName)
newName - The new key (must not be null !)public java.lang.String name()
public int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic NamedValue copyNamedValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||