Exemplo n.º 1
0
  @Override
  public int compareTo(Signature other) {

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

    return this.getContextNode().compareTo(other.getContextNode());
  }
Exemplo n.º 2
0
  @Override
  public boolean equals(Object object) {

    if (object == null || !(object instanceof Signature)) return false;
    if (object == this) return true;

    Signature other = (Signature) object;

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