de.derivo.sparqldlapi.Var Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of de-derivo-sparqldlapi Show documentation
Show all versions of de-derivo-sparqldlapi Show documentation
This library was originally developed by Mario Volke and Derivo Systems.
The newest version!
package de.derivo.sparqldlapi;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 11/06/15
*/
public class Var {
private String name;
public Var(String name) {
this.name = name;
}
public String getName() {
return name;
}
@Override
public int hashCode() {
return name.hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof Var)) {
return false;
}
Var other = (Var) obj;
return this.name.equals(other.name);
}
}