jeco.core.problem.Variable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeco-core Show documentation
Show all versions of jeco-core Show documentation
Java Evolutionary COmputation library
The newest version!
package jeco.core.problem;
public class Variable {
protected T value;
public Variable(T value) {
this.value = value;
}
public T getValue() { return value; }
public void setValue(T value) { this.value = value; }
@Override
public Variable clone() {
return new Variable( value);
}
@SuppressWarnings("unchecked")
@Override
public boolean equals(Object right) {
Variable var = (Variable)right;
return this.value.equals(var.value);
}
}