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.processing.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 @NotBlank String searchTerm;

  private final @NotEmpty List ontologyIds;

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

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

  @Override
  public @NotEmpty 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$ ^= searchTerm.hashCode();
    h$ *= 1000003;
    h$ ^= ontologyIds.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy