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