@Override public boolean equals(Object o) { if (o instanceof Node) { Node other = (Node) o; if (StringTool.compare(ch, other.ch) == true) { if (lfreq == other.lfreq) { return true; } } } return false; }