ai.grakn.engine.util.AutoValue_EngineID Maven / Gradle / Ivy
package ai.grakn.engine.util;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.CheckReturnValue;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_EngineID extends EngineID {
private final String value;
AutoValue_EngineID(
String value) {
if (value == null) {
throw new NullPointerException("Null value");
}
this.value = value;
}
@CheckReturnValue
@JsonValue
@Override
public String getValue() {
return value;
}
@Override
public String toString() {
return "EngineID{"
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof EngineID) {
EngineID that = (EngineID) o;
return (this.value.equals(that.getValue()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.value.hashCode();
return h;
}
private static final long serialVersionUID = 8846772120873129437L;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy