@Override /** This function ONLY worries about matching the STRING portion of this node */ public int compareTo(Object x) { Node that = (Node) x; return this.getWord().compareTo(that.getWord()); }
public boolean startsWith(Object x) { Node that = (Node) x; return that.getWord().startsWith(this.getWord()); }