コード例 #1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof TypeUsageWrapperNode)) return false;

    TypeUsageWrapperNode that = (TypeUsageWrapperNode) o;

    if (typeUsage != null ? !typeUsage.equals(that.typeUsage) : that.typeUsage != null)
      return false;

    return true;
  }
コード例 #2
0
 @Override
 public int hashCode() {
   return typeUsage != null ? typeUsage.hashCode() : 0;
 }