ai.grakn.kb.log.AutoValue_CommitLog Maven / Gradle / Ivy
package ai.grakn.kb.log;
import ai.grakn.Keyspace;
import ai.grakn.concept.ConceptId;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import java.util.Set;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CommitLog extends CommitLog {
private final Keyspace keyspace;
private final Map instanceCount;
private final Map> attributes;
AutoValue_CommitLog(
Keyspace keyspace,
Map instanceCount,
Map> attributes) {
if (keyspace == null) {
throw new NullPointerException("Null keyspace");
}
this.keyspace = keyspace;
if (instanceCount == null) {
throw new NullPointerException("Null instanceCount");
}
this.instanceCount = instanceCount;
if (attributes == null) {
throw new NullPointerException("Null attributes");
}
this.attributes = attributes;
}
@JsonProperty
@Override
public Keyspace keyspace() {
return keyspace;
}
@JsonProperty(value = "instance-count")
@Override
public Map instanceCount() {
return instanceCount;
}
@JsonProperty(value = "new-attributes")
@Override
public Map> attributes() {
return attributes;
}
@Override
public String toString() {
return "CommitLog{"
+ "keyspace=" + keyspace + ", "
+ "instanceCount=" + instanceCount + ", "
+ "attributes=" + attributes
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CommitLog) {
CommitLog that = (CommitLog) o;
return (this.keyspace.equals(that.keyspace()))
&& (this.instanceCount.equals(that.instanceCount()))
&& (this.attributes.equals(that.attributes()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.keyspace.hashCode();
h *= 1000003;
h ^= this.instanceCount.hashCode();
h *= 1000003;
h ^= this.attributes.hashCode();
return h;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy