public class KeyValuePair extends Object implements Serializable, Cloneable
A key and value pair object.
Constructor and Description |
---|
KeyValuePair() |
Modifier and Type | Method and Description |
---|---|
KeyValuePair |
clone() |
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. For environment variables, this is the
name of the environment variable.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. For environment variables, this is the
name of the environment variable.public String getValue()
public void setValue(String value)
value
- The value of the key value pair. For environment variables, this is
the value of the environment variable.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. For environment variables, this is
the value of the environment variable.public String toString()
toString
in class Object
Object.toString()
public KeyValuePair clone()
Copyright © 2015. All rights reserved.