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

jeco.core.problem.Variable Maven / Gradle / Ivy

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy