|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.concurrenttrees.radix.ConcurrentRadixTree.KeyValuePairImpl<O>
public static class ConcurrentRadixTree.KeyValuePairImpl<O>
Implementation of the KeyValuePair interface.
| Constructor Summary | |
|---|---|
ConcurrentRadixTree.KeyValuePairImpl(String key,
Object value)
Constructor. |
|
| 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). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConcurrentRadixTree.KeyValuePairImpl(String key,
Object value)
String
- this is to allow reliable testing of object equality; the alternative CharSequence
does not specify a contract for Object.equals(Object).
key - The key as a stringvalue - The value| Method Detail |
|---|
public CharSequence getKey()
getKey in interface KeyValuePair<O>public O getValue()
getValue in interface KeyValuePair<O>public boolean equals(Object o)
KeyValuePair object with another for equality.
This is implemented based on equality of the keys.
equals in interface KeyValuePair<O>equals in class Objecto - The other object to compare
KeyValuePair and is equal to this one as specified abovepublic int hashCode()
hashCode in interface KeyValuePair<O>hashCode in class Objectpublic String toString()
(key, value).
toString in interface KeyValuePair<O>toString in class Object(key, value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||