public class KeyValuePair
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A key and value pair object.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the key value pair.
|
private java.lang.String |
value
The value of the key value pair.
|
Constructor and Description |
---|
KeyValuePair() |
Modifier and Type | Method and Description |
---|---|
KeyValuePair |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the key value pair.
|
java.lang.String |
getValue()
The value of the key value pair.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the key value pair.
|
void |
setValue(java.lang.String value)
The value of the key value pair.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyValuePair |
withName(java.lang.String name)
The name of the key value pair.
|
KeyValuePair |
withValue(java.lang.String value)
The value of the key value pair.
|
private java.lang.String name
The name of the key value pair. For environment variables, this is the name of the environment variable.
private java.lang.String value
The value of the key value pair. For environment variables, this is the value of the environment variable.
public void setName(java.lang.String name)
The name of the key value pair. For environment variables, this is the name of the environment variable.
name
- The name of the key value pair. For environment variables, this is
the name of the environment variable.public java.lang.String getName()
The name of the key value pair. For environment variables, this is the name of the environment variable.
public KeyValuePair withName(java.lang.String name)
The name of the key value pair. For environment variables, this is the name of the environment variable.
name
- The name of the key value pair. For environment variables, this is
the name of the environment variable.public void setValue(java.lang.String value)
The value of the key value pair. For environment variables, this is the value of the environment variable.
value
- The value of the key value pair. For environment variables, this
is the value of the environment variable.public java.lang.String getValue()
The value of the key value pair. For environment variables, this is the value of the environment variable.
public KeyValuePair withValue(java.lang.String value)
The value of the key value pair. For environment variables, this is the value of the environment variable.
value
- The value of the key value pair. For environment variables, this
is the value of the environment variable.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public KeyValuePair clone()
clone
in class java.lang.Object