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

edu.stanford.protege.webprotege.search.AutoValue_EntityNameMatchResult Maven / Gradle / Ivy

There is a newer version: 2.0.2-WHO
Show newest version
package edu.stanford.protege.webprotege.search;

import javax.annotation.processing.Generated;

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

  private final int start;

  private final int end;

  private final EntityNameMatchType matchType;

  private final PrefixNameMatchType prefixNameMatchType;

  AutoValue_EntityNameMatchResult(
      int start,
      int end,
      EntityNameMatchType matchType,
      PrefixNameMatchType prefixNameMatchType) {
    this.start = start;
    this.end = end;
    if (matchType == null) {
      throw new NullPointerException("Null matchType");
    }
    this.matchType = matchType;
    if (prefixNameMatchType == null) {
      throw new NullPointerException("Null prefixNameMatchType");
    }
    this.prefixNameMatchType = prefixNameMatchType;
  }

  @Override
  public int getStart() {
    return start;
  }

  @Override
  public int getEnd() {
    return end;
  }

  @Override
  public EntityNameMatchType getMatchType() {
    return matchType;
  }

  @Override
  public PrefixNameMatchType getPrefixNameMatchType() {
    return prefixNameMatchType;
  }

  @Override
  public String toString() {
    return "EntityNameMatchResult{"
        + "start=" + start + ", "
        + "end=" + end + ", "
        + "matchType=" + matchType + ", "
        + "prefixNameMatchType=" + prefixNameMatchType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EntityNameMatchResult) {
      EntityNameMatchResult that = (EntityNameMatchResult) o;
      return this.start == that.getStart()
          && this.end == that.getEnd()
          && this.matchType.equals(that.getMatchType())
          && this.prefixNameMatchType.equals(that.getPrefixNameMatchType());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= start;
    h$ *= 1000003;
    h$ ^= end;
    h$ *= 1000003;
    h$ ^= matchType.hashCode();
    h$ *= 1000003;
    h$ ^= prefixNameMatchType.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy