Exemple #1
0
  @Override
  public int compareTo(Signature other) {

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

    return this.getContextNode().compareTo(other.getContextNode());
  }
Exemple #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());
  }