|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.Association<java.lang.String,V>
org.pf.util.NamedValue<V>
public class NamedValue<V>
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,
V 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.String newKey)
Sets the new key. |
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,
V value)
| Method Detail |
|---|
public void key(java.lang.String newKey)
key in class Association<java.lang.String,V>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 | ||||||||