|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.hiveutils.collections.NameValuePair
public class NameValuePair
Utility class to hold a "name-value" pair. Convenient for property handling.
| Constructor Summary | |
|---|---|
NameValuePair()
Constructs a default name-value pair. |
|
NameValuePair(java.lang.String name,
java.lang.String value)
Constructs a name-value pair with the given name and value. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Gets the name of this name-value pair. |
java.lang.String |
getValue()
Gets the value of this name-value pair. |
void |
setName(java.lang.String name)
Sets a name to this name-value pair. |
void |
setValue(java.lang.String value)
Sets a value to this name-value pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NameValuePair()
public NameValuePair(java.lang.String name,
java.lang.String value)
name - name of the pairvalue - value of the pair| Method Detail |
|---|
public void setName(java.lang.String name)
name - new name of the pairpublic java.lang.String getName()
public void setValue(java.lang.String value)
value - new value of the pairpublic java.lang.String getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||