|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.cache.AbstractNode<K,T>
K - type of the keyT - type of the implementing class (used for Comparablepublic abstract class AbstractNode<K,T>
Represents a node that can be used as a key for TreeMap.
| Field Summary | |
|---|---|
protected K |
key
Key associated with the node. |
| Constructor Summary | |
|---|---|
protected |
AbstractNode(K key)
Constructor for the AbstractNode. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Checks whether the specified object is an AbstractNode with the same key. |
K |
getKey()
Gets the associated key. |
int |
hashCode()
Computes the hash code for the node as a hash code of the key. |
java.lang.String |
toString()
Returns a text representation of the node. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected K key
| Constructor Detail |
|---|
protected AbstractNode(K key)
key - key associated with the node.| Method Detail |
|---|
public K getKey()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||