public class KeyValuePair extends Object implements Comparable<KeyValuePair>, Serializable
Constructor and Description |
---|
KeyValuePair() |
KeyValuePair(String key,
String value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(KeyValuePair kvp) |
boolean |
equals(Object obj) |
String |
getKey() |
String |
getValue() |
int |
hashCode() |
void |
setKey(String key) |
void |
setValue(String value) |
public KeyValuePair()
public KeyValuePair(String key, String value)
public int compareTo(KeyValuePair kvp)
compareTo
in interface Comparable<KeyValuePair>
public boolean equals(Object obj)
equals
in class Object
public String getKey()
public String getValue()
public int hashCode()
hashCode
in class Object
public void setKey(String key)
public void setValue(String value)