K
- type of the keyT
- type of the implementing class (used for Comparable)public abstract class AbstractNode<K,T> extends Object implements Comparable<T>
TreeMap
.Modifier and Type | Method and Description |
---|---|
boolean |
equals(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.
|
String |
toString()
Returns a text representation of the node.
|
compareTo
public K getKey()
public boolean equals(Object o)
public int hashCode()
Copyright © 2016 Egothor. All Rights Reserved.