public class KeyValuePair extends Object implements Serializable
Constructor and Description |
---|
KeyValuePair() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
The name of the key value pair.
|
String |
getValue()
The value of the key value pair.
|
int |
hashCode() |
void |
setName(String name)
The name of the key value pair.
|
void |
setValue(String value)
The value of the key value pair.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyValuePair |
withName(String name)
The name of the key value pair.
|
KeyValuePair |
withValue(String value)
The value of the key value pair.
|
public String getName()
public void setName(String name)
name
- The name of the key value pair.public KeyValuePair withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The name of the key value pair.public String getValue()
public void setValue(String value)
value
- The value of the key value pair.public KeyValuePair withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value
- The value of the key value pair.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.