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