public class KeyValuePair
extends java.lang.Object
Represents a key and a value pair.
Constructor and Description |
---|
KeyValuePair(java.lang.String key,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getKey()
The key of the pair.
|
java.lang.Object |
getValue()
The value of the pair.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The key of the pair.
|
void |
setValue(java.lang.Object value)
The value of the pair.
|
java.lang.String |
toString() |
public java.lang.String getKey()
The key of the pair.
public java.lang.Object getValue()
The value of the pair.
public void setKey(java.lang.String key)
The key of the pair.
key
- the key to set.public void setValue(java.lang.Object value)
The value of the pair.
value
- the value to set.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object