O
- The type of the valuepublic interface KeyValuePair<O>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compares this
KeyValuePair object with another for equality. |
CharSequence |
getKey()
Returns the key with which the value is associated
|
O |
getValue()
Returns the value associated with the key
|
int |
hashCode()
Returns a hash code for this object.
|
String |
toString()
Returns a string representation as
(key, value) . |
CharSequence getKey()
O getValue()
boolean equals(Object o)
KeyValuePair
object with another for equality.
This is implemented based on equality of the keys.equals
in class Object
o
- The other object to compareKeyValuePair
and is equal to this one as specified aboveCopyright © 2017. All rights reserved.