ai.libs.reduction.single.MySQLReductionExperiment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mlplan-ext-reduction Show documentation
Show all versions of mlplan-ext-reduction Show documentation
This project provides an implementation of the AutoML tool ML-Plan.
package ai.libs.reduction.single;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.EqualsBuilder;
public class MySQLReductionExperiment {
private final int id;
private final ReductionExperiment experiment;
public MySQLReductionExperiment(final int id, final ReductionExperiment experiment) {
super();
this.id = id;
this.experiment = experiment;
}
public int getId() {
return this.id;
}
public ReductionExperiment getExperiment() {
return this.experiment;
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(this.experiment).append(this.id).toHashCode();
}
@Override
public boolean equals(final Object obj) {
if (!(obj instanceof MySQLReductionExperiment)) {
return false;
}
MySQLReductionExperiment other = (MySQLReductionExperiment)obj;
return new EqualsBuilder().append(other.id, this.id).append(other.experiment, this.experiment).isEquals();
}
@Override
public String toString() {
return "MySQLReductionExperiment [id=" + this.id + ", experiment=" + this.experiment + "]";
}
}