All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.grakn.AutoValue_Keyspace Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version

package ai.grakn;

import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_Keyspace extends Keyspace {

  private final String value;

  AutoValue_Keyspace(
      String value) {
    if (value == null) {
      throw new NullPointerException("Null value");
    }
    this.value = value;
  }

  @JsonProperty(value = "name")
  @Override
  public String getValue() {
    return value;
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Keyspace) {
      Keyspace that = (Keyspace) o;
      return (this.value.equals(that.getValue()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.value.hashCode();
    return h;
  }

  private static final long serialVersionUID = 2726154016735929123L;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy