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

edu.stanford.protege.webprotege.lang.AutoValue_DictionaryLanguageUsage Maven / Gradle / Ivy

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

import edu.stanford.protege.webprotege.common.DictionaryLanguage;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final DictionaryLanguage dictionaryLanguage;

  private final int referenceCount;

  AutoValue_DictionaryLanguageUsage(
      DictionaryLanguage dictionaryLanguage,
      int referenceCount) {
    if (dictionaryLanguage == null) {
      throw new NullPointerException("Null dictionaryLanguage");
    }
    this.dictionaryLanguage = dictionaryLanguage;
    this.referenceCount = referenceCount;
  }

  @Nonnull
  @Override
  public DictionaryLanguage getDictionaryLanguage() {
    return dictionaryLanguage;
  }

  @Override
  public int getReferenceCount() {
    return referenceCount;
  }

  @Override
  public String toString() {
    return "DictionaryLanguageUsage{"
        + "dictionaryLanguage=" + dictionaryLanguage + ", "
        + "referenceCount=" + referenceCount
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DictionaryLanguageUsage) {
      DictionaryLanguageUsage that = (DictionaryLanguageUsage) o;
      return this.dictionaryLanguage.equals(that.getDictionaryLanguage())
          && this.referenceCount == that.getReferenceCount();
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy