All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.libs.reduction.ensemble.simple.MySQLEnsembleOfSimpleOneStepReductionsExperiment Maven / Gradle / Ivy

There is a newer version: 0.2.7
Show newest version
package ai.libs.reduction.ensemble.simple;

public class MySQLEnsembleOfSimpleOneStepReductionsExperiment {
	private final int id;
	private final EnsembleOfSimpleOneStepReductionsExperiment experiment;

	public MySQLEnsembleOfSimpleOneStepReductionsExperiment(int id, EnsembleOfSimpleOneStepReductionsExperiment experiment) {
		super();
		this.id = id;
		this.experiment = experiment;
	}

	public int getId() {
		return id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((experiment == null) ? 0 : experiment.hashCode());
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MySQLEnsembleOfSimpleOneStepReductionsExperiment other = (MySQLEnsembleOfSimpleOneStepReductionsExperiment) obj;
		if (experiment == null) {
			if (other.experiment != null)
				return false;
		} else if (!experiment.equals(other.experiment))
			return false;
		if (id != other.id)
			return false;
		return true;
	}

	public EnsembleOfSimpleOneStepReductionsExperiment getExperiment() {
		return experiment;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy