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.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Things extends Things {
private final Link selfLink;
private final List instances;
private final Link next;
private final Link previous;
AutoValue_Things(
Link selfLink,
List instances,
@Nullable Link next,
@Nullable Link previous) {
if (selfLink == null) {
throw new NullPointerException("Null selfLink");
}
this.selfLink = selfLink;
if (instances == null) {
throw new NullPointerException("Null instances");
}
this.instances = instances;
this.next = next;
this.previous = previous;
}
@JsonProperty(value = "@id")
@Override
public Link selfLink() {
return selfLink;
}
@JsonProperty
@Override
public List instances() {
return instances;
}
@JsonProperty
@Nullable
@Override
public Link next() {
return next;
}
@JsonProperty
@Nullable
@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 == null) ? (that.next() == null) : this.next.equals(that.next()))
&& ((this.previous == null) ? (that.previous() == null) : 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 ^= (next == null) ? 0 : this.next.hashCode();
h *= 1000003;
h ^= (previous == null) ? 0 : this.previous.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy