Exemplo n.º 1
0
  @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());
  }
Exemplo n.º 2
0
  public int compareTo(LinkContract other) {

    if (other == this || other == null) return 0;

    return this.getContextNode().compareTo(other.getContextNode());
  }