// XXX NOTE: this assumes that the reference of the generator value does not change!
@Override
  public final boolean equals(final Object other) {
    if (!(other instanceof Production)) {
      return false;
    }
    // XXX NOTE: this assumes that the reference of the generator value does not change!
    final Production otherProduction = (Production) other;
    return this.id == otherProduction.id
        && this.ownClass.equals(otherProduction.ownClass)
        && this.generatorValue == otherProduction.generatorValue;
  }
return false;
}
// XXX NOTE: this assumes that the reference of the generator value does not change!
final Production otherProduction = (Production) other;
return this.id == otherProduction.id
@Override
public final boolean equals(final Object other) {
if (!(other instanceof Production)) {
return false;
}
// XXX NOTE: this assumes that the reference of the generator value does not change!
final Production otherProduction = (Production) other;
return this.id == otherProduction.id
&& this.ownClass.equals(otherProduction.ownClass)
&& this.generatorValue == otherProduction.generatorValue;
}
@Override
public final boolean equals(final Object other) {
if (!(other instanceof Production)) {
return false;
}
// XXX NOTE: this assumes that the reference of the generator value does not change!
final Production otherProduction = (Production) other;
return this.id == otherProduction.id
&& this.ownClass.equals(otherProduction.ownClass)
&& this.generatorValue == otherProduction.generatorValue;
}