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