Esempio n. 1
0
  @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());
  }
Esempio n. 2
0
  public boolean startsWith(Object x) {

    Node that = (Node) x;
    return that.getWord().startsWith(this.getWord());
  }