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

org.molgenis.navigator.AutoValue_SearchResourcesResponse Maven / Gradle / Ivy

package org.molgenis.navigator;

import java.util.List;
import javax.annotation.processing.Generated;
import org.molgenis.navigator.model.Resource;

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

  private final List resources;

  private AutoValue_SearchResourcesResponse(
      List resources) {
    this.resources = resources;
  }

  @Override
  public List getResources() {
    return resources;
  }

  @Override
  public String toString() {
    return "SearchResourcesResponse{"
         + "resources=" + resources
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SearchResourcesResponse) {
      SearchResourcesResponse that = (SearchResourcesResponse) o;
      return this.resources.equals(that.getResources());
    }
    return false;
  }

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

  static final class Builder extends SearchResourcesResponse.Builder {
    private List resources;
    Builder() {
    }
    @Override
    public SearchResourcesResponse.Builder setResources(List resources) {
      if (resources == null) {
        throw new NullPointerException("Null resources");
      }
      this.resources = resources;
      return this;
    }
    @Override
    public SearchResourcesResponse build() {
      String missing = "";
      if (this.resources == null) {
        missing += " resources";
      }
      if (!missing.isEmpty()) {
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_SearchResourcesResponse(
          this.resources);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy