Beispiel #1
0
  @Override
  public boolean equals(Object other) {
    if (other instanceof ASTClassType) {
      ASTClassType oc = (ASTClassType) other;
      return name.equals(oc.name); // NB. name only
    }

    return false;
  }
Beispiel #2
0
 @Override
 public int hashCode() {
   return name.hashCode();
 }