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

edu.stanford.protege.webprotege.project.AutoValue_GetProjectInfoResult Maven / Gradle / Ivy

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

import com.google.common.collect.ImmutableList;
import edu.stanford.protege.webprotege.lang.DictionaryLanguageUsage;
import edu.stanford.protege.webprotege.projectsettings.ProjectSettings;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final ProjectSettings projectSettings;

  private final ImmutableList projectLanguages;

  AutoValue_GetProjectInfoResult(
      ProjectSettings projectSettings,
      ImmutableList projectLanguages) {
    if (projectSettings == null) {
      throw new NullPointerException("Null projectSettings");
    }
    this.projectSettings = projectSettings;
    if (projectLanguages == null) {
      throw new NullPointerException("Null projectLanguages");
    }
    this.projectLanguages = projectLanguages;
  }

  @Nonnull
  @Override
  public ProjectSettings getProjectSettings() {
    return projectSettings;
  }

  @Nonnull
  @Override
  public ImmutableList getProjectLanguages() {
    return projectLanguages;
  }

  @Override
  public String toString() {
    return "GetProjectInfoResult{"
        + "projectSettings=" + projectSettings + ", "
        + "projectLanguages=" + projectLanguages
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GetProjectInfoResult) {
      GetProjectInfoResult that = (GetProjectInfoResult) o;
      return this.projectSettings.equals(that.getProjectSettings())
          && this.projectLanguages.equals(that.getProjectLanguages());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy