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

org.molgenis.data.semanticsearch.semantic.AutoValue_Hit Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version

package org.molgenis.data.semanticsearch.semantic;

import javax.annotation.Generated;

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

  private final T result;
  private final int scoreInt;

  AutoValue_Hit(
      T result,
      int scoreInt) {
    if (result == null) {
      throw new NullPointerException("Null result");
    }
    this.result = result;
    this.scoreInt = scoreInt;
  }

  @Override
  public T getResult() {
    return result;
  }

  @Override
  public int getScoreInt() {
    return scoreInt;
  }

  @Override
  public String toString() {
    return "Hit{"
        + "result=" + result + ", "
        + "scoreInt=" + scoreInt
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Hit) {
      Hit that = (Hit) o;
      return (this.result.equals(that.getResult()))
           && (this.scoreInt == that.getScoreInt());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy