public abstract class AbstractKeyValue extends java.lang.Object implements KeyValue
KeyValue
and Map.Entry
implementations.Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
key
The key
|
protected java.lang.Object |
value
The value
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractKeyValue(java.lang.Object key,
java.lang.Object value)
Constructs a new pair with the specified key and given value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKey()
Gets the key from the pair.
|
java.lang.Object |
getValue()
Gets the value from the pair.
|
java.lang.String |
toString()
Gets a debugging String view of the pair.
|
protected java.lang.Object key
protected java.lang.Object value
protected AbstractKeyValue(java.lang.Object key, java.lang.Object value)
key
- the key for the entry, may be nullvalue
- the value for the entry, may be nullpublic java.lang.Object getKey()
public java.lang.Object getValue()
public java.lang.String toString()
toString
in class java.lang.Object