|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.utils.NameValuePair
Encapsulates the information about a relationship between a String literal "key"
and the value associated with that String literal key.
The concept is the same as that of the Map, except that it is restricted to a single
name/value pair. This relationship allows both a null key as well as a
null value.
| Constructor Summary | |
NameValuePair(java.lang.String key,
java.lang.Object value)
Default constructor. |
|
| Method Summary | |
java.lang.String |
getKey()
Returns the key (or name) parameter of the relationship |
java.lang.Object |
getValue()
Returns the value parameter of the relationship |
void |
setKey(java.lang.String key)
Sets the key (or name) parameter of the relationship |
void |
setValue(java.lang.Object value)
Sets the value parameter of the relationship |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NameValuePair(java.lang.String key,
java.lang.Object value)
key - the name of the key (or name) parameter of the relationshipvalue - the value parameter of the relationshipsetKey(java.lang.String),
setValue(java.lang.Object)| Method Detail |
public final java.lang.String getKey()
public final java.lang.Object getValue()
public final void setKey(java.lang.String key)
key - the key (or name) parameter of the relationshippublic final void setValue(java.lang.Object value)
value - the value parameter of the relationship
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||