public class NameValuePair extends Object implements Serializable
A simple class encapsulating a name/value pair.
Constructor and Description |
---|
NameValuePair()
Default constructor.
|
NameValuePair(String name,
String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getName()
Return the name.
|
String |
getValue()
Return the current value.
|
int |
hashCode() |
void |
setName(String name)
Set the name.
|
void |
setValue(String value)
Set the value.
|
String |
toString()
Get a String representation of this pair.
|
public void setName(String name)
name
- The new namegetName()
public String getName()
setName(String)
public void setValue(String value)
value
- The new value.public String getValue()
public String toString()
Copyright © 2019. All Rights Reserved.