|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
O - The type of the valuepublic interface KeyValuePair<O>
Encapsulates a key and a value.
| Method Summary | |
|---|---|
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). |
| Method Detail |
|---|
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 Objecto - The other object to compare
KeyValuePair and is equal to this one as specified aboveint hashCode()
hashCode in class ObjectString toString()
(key, value).
toString in class Object(key, value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||