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