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