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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
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_DisplayNameSettings extends DisplayNameSettings {

  private final ImmutableList primaryDisplayNameLanguages;

  private final ImmutableList secondaryDisplayNameLanguages;

  AutoValue_DisplayNameSettings(
      ImmutableList primaryDisplayNameLanguages,
      ImmutableList secondaryDisplayNameLanguages) {
    if (primaryDisplayNameLanguages == null) {
      throw new NullPointerException("Null primaryDisplayNameLanguages");
    }
    this.primaryDisplayNameLanguages = primaryDisplayNameLanguages;
    if (secondaryDisplayNameLanguages == null) {
      throw new NullPointerException("Null secondaryDisplayNameLanguages");
    }
    this.secondaryDisplayNameLanguages = secondaryDisplayNameLanguages;
  }

  @JsonProperty("primaryDisplayNameLanguages")
  @Nonnull
  @Override
  public ImmutableList getPrimaryDisplayNameLanguages() {
    return primaryDisplayNameLanguages;
  }

  @JsonProperty("secondaryDisplayNameLanguages")
  @Nonnull
  @Override
  public ImmutableList getSecondaryDisplayNameLanguages() {
    return secondaryDisplayNameLanguages;
  }

  @Override
  public String toString() {
    return "DisplayNameSettings{"
        + "primaryDisplayNameLanguages=" + primaryDisplayNameLanguages + ", "
        + "secondaryDisplayNameLanguages=" + secondaryDisplayNameLanguages
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof DisplayNameSettings) {
      DisplayNameSettings that = (DisplayNameSettings) o;
      return this.primaryDisplayNameLanguages.equals(that.getPrimaryDisplayNameLanguages())
          && this.secondaryDisplayNameLanguages.equals(that.getSecondaryDisplayNameLanguages());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy