Esempio n. 1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;

    if (o == null || getClass() != o.getClass()) return false;

    IdentifierNode that = (IdentifierNode) o;

    return base != null ? base.equals(that.base) : that.base == null && name.equals(that.name);
  }
Esempio n. 2
0
 @Override
 public int hashCode() {
   int result = base != null ? base.hashCode() : 0;
   result = 31 * result + name.hashCode();
   return result;
 }