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

ai.grakn.engine.controller.response.AutoValue_EmbeddedSchemaConcept Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version

package ai.grakn.engine.controller.response;

import ai.grakn.concept.Label;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Generated;

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

  private final Link selfLink;
  private final Label label;

  AutoValue_EmbeddedSchemaConcept(
      Link selfLink,
      Label label) {
    if (selfLink == null) {
      throw new NullPointerException("Null selfLink");
    }
    this.selfLink = selfLink;
    if (label == null) {
      throw new NullPointerException("Null label");
    }
    this.label = label;
  }

  @JsonProperty(value = "@id")
  @Override
  public Link selfLink() {
    return selfLink;
  }

  @JsonProperty
  @Override
  public Label label() {
    return label;
  }

  @Override
  public String toString() {
    return "EmbeddedSchemaConcept{"
        + "selfLink=" + selfLink + ", "
        + "label=" + label
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EmbeddedSchemaConcept) {
      EmbeddedSchemaConcept that = (EmbeddedSchemaConcept) o;
      return (this.selfLink.equals(that.selfLink()))
           && (this.label.equals(that.label()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy