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