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

org.molgenis.semanticsearch.explain.bean.AutoValue_AttributeSearchResults Maven / Gradle / Ivy

The newest version!
package org.molgenis.semanticsearch.explain.bean;

import javax.annotation.processing.Generated;
import org.molgenis.data.meta.model.Attribute;
import org.molgenis.semanticsearch.semantic.Hits;

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

  private final Attribute attribute;

  private final Hits hits;

  AutoValue_AttributeSearchResults(
      Attribute attribute,
      Hits hits) {
    if (attribute == null) {
      throw new NullPointerException("Null attribute");
    }
    this.attribute = attribute;
    if (hits == null) {
      throw new NullPointerException("Null hits");
    }
    this.hits = hits;
  }

  @Override
  public Attribute getAttribute() {
    return attribute;
  }

  @Override
  public Hits getHits() {
    return hits;
  }

  @Override
  public String toString() {
    return "AttributeSearchResults{"
         + "attribute=" + attribute + ", "
         + "hits=" + hits
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AttributeSearchResults) {
      AttributeSearchResults that = (AttributeSearchResults) o;
      return this.attribute.equals(that.getAttribute())
          && this.hits.equals(that.getHits());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy