@Override public boolean equals(Object object) { if (object == null || !(object instanceof LinkContract)) return false; if (object == this) return true; LinkContract other = (LinkContract) object; return this.getContextNode().equals(other.getContextNode()); }
public int compareTo(LinkContract other) { if (other == this || other == null) return 0; return this.getContextNode().compareTo(other.getContextNode()); }