Ejemplo n.º 1
0
  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof JavaType)) {
      return false;
    }

    JavaType other = (JavaType) obj;
    return new EqualsBuilder()
        .appendSuper(super.equals(other))
        .append(this.getTypeClass(), other.getTypeClass())
        .append(this.getSimpleName(), other.getSimpleName())
        .append(this.getPackageName(), other.getPackageName())
        .append(this.getDefaultValue(), other.getDefaultValue())
        .append(this.getKind(), other.getKind())
        .isEquals();
  }