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

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

There is a newer version: 1.4.3
Show newest version

package ai.grakn.engine.controller.response;

import java.util.List;
import javax.annotation.Generated;

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

  private final Link selfLink;
  private final String key;
  private final List items;

  AutoValue_ListResource(
      Link selfLink,
      String key,
      List items) {
    if (selfLink == null) {
      throw new NullPointerException("Null selfLink");
    }
    this.selfLink = selfLink;
    if (key == null) {
      throw new NullPointerException("Null key");
    }
    this.key = key;
    if (items == null) {
      throw new NullPointerException("Null items");
    }
    this.items = items;
  }

  @Override
  public Link selfLink() {
    return selfLink;
  }

  @Override
  public String key() {
    return key;
  }

  @Override
  public List items() {
    return items;
  }

  @Override
  public String toString() {
    return "ListResource{"
        + "selfLink=" + selfLink + ", "
        + "key=" + key + ", "
        + "items=" + items
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy