KEY_TYPE - the type of the key used for comparison.
public abstract class NodeData<KEY_TYPE>
extends Object
classes extending that one should preferably be comparable only on a subset of their attributes. More formally,
a.equals(b) regardless of the result of (a.hashCode() == b.hashCode())