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

edu.stanford.protege.webprotege.entity.AutoValue_EntityLookupResult Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.entity;

import edu.stanford.protege.webprotege.search.SearchResultMatch;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final SearchResultMatch matchResult;

  private final String directLink;

  AutoValue_EntityLookupResult(
      SearchResultMatch matchResult,
      String directLink) {
    if (matchResult == null) {
      throw new NullPointerException("Null matchResult");
    }
    this.matchResult = matchResult;
    if (directLink == null) {
      throw new NullPointerException("Null directLink");
    }
    this.directLink = directLink;
  }

  @Nonnull
  @Override
  public SearchResultMatch getMatchResult() {
    return matchResult;
  }

  @Nonnull
  @Override
  public String getDirectLink() {
    return directLink;
  }

  @Override
  public String toString() {
    return "EntityLookupResult{"
        + "matchResult=" + matchResult + ", "
        + "directLink=" + directLink
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EntityLookupResult) {
      EntityLookupResult that = (EntityLookupResult) o;
      return this.matchResult.equals(that.getMatchResult())
          && this.directLink.equals(that.getDirectLink());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy