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

org.molgenis.semanticmapper.data.request.AutoValue_GetOntologyTermRequest Maven / Gradle / Ivy


package org.molgenis.semanticmapper.data.request;

import java.util.List;
import javax.annotation.Generated;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

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

  private final String searchTerm;
  private final List ontologyIds;

  AutoValue_GetOntologyTermRequest(
      String searchTerm,
      List ontologyIds) {
    if (searchTerm == null) {
      throw new NullPointerException("Null searchTerm");
    }
    this.searchTerm = searchTerm;
    if (ontologyIds == null) {
      throw new NullPointerException("Null ontologyIds");
    }
    this.ontologyIds = ontologyIds;
  }

  @NotBlank
  @NotBlank
  @Override
  public String getSearchTerm() {
    return searchTerm;
  }

  @NotEmpty
  @NotEmpty
  @Override
  public List getOntologyIds() {
    return ontologyIds;
  }

  @Override
  public String toString() {
    return "GetOntologyTermRequest{"
        + "searchTerm=" + searchTerm + ", "
        + "ontologyIds=" + ontologyIds
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GetOntologyTermRequest) {
      GetOntologyTermRequest that = (GetOntologyTermRequest) o;
      return (this.searchTerm.equals(that.getSearchTerm()))
           && (this.ontologyIds.equals(that.getOntologyIds()));
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy