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

edu.stanford.protege.webprotege.projectsettings.AutoValue_AllProjectSettings Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import edu.stanford.protege.webprotege.crud.EntityCrudKitSettings;
import edu.stanford.protege.webprotege.project.PrefixDeclaration;
import edu.stanford.protege.webprotege.search.ProjectSearchSettings;
import edu.stanford.protege.webprotege.sharing.ProjectSharingSettings;
import edu.stanford.protege.webprotege.tag.Tag;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final ProjectSettings projectSettings;

  private final EntityCrudKitSettings entityCreationSettings;

  private final ImmutableList prefixDeclarations;

  private final ImmutableList projectTags;

  private final ProjectSharingSettings sharingSettings;

  private final ProjectSearchSettings searchSettings;

  AutoValue_AllProjectSettings(
      ProjectSettings projectSettings,
      EntityCrudKitSettings entityCreationSettings,
      ImmutableList prefixDeclarations,
      ImmutableList projectTags,
      ProjectSharingSettings sharingSettings,
      ProjectSearchSettings searchSettings) {
    if (projectSettings == null) {
      throw new NullPointerException("Null projectSettings");
    }
    this.projectSettings = projectSettings;
    if (entityCreationSettings == null) {
      throw new NullPointerException("Null entityCreationSettings");
    }
    this.entityCreationSettings = entityCreationSettings;
    if (prefixDeclarations == null) {
      throw new NullPointerException("Null prefixDeclarations");
    }
    this.prefixDeclarations = prefixDeclarations;
    if (projectTags == null) {
      throw new NullPointerException("Null projectTags");
    }
    this.projectTags = projectTags;
    if (sharingSettings == null) {
      throw new NullPointerException("Null sharingSettings");
    }
    this.sharingSettings = sharingSettings;
    if (searchSettings == null) {
      throw new NullPointerException("Null searchSettings");
    }
    this.searchSettings = searchSettings;
  }

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

  @JsonProperty("entityCreationSettings")
  @Nonnull
  @Override
  public EntityCrudKitSettings getEntityCreationSettings() {
    return entityCreationSettings;
  }

  @JsonProperty("prefixDeclarations")
  @Nonnull
  @Override
  public ImmutableList getPrefixDeclarations() {
    return prefixDeclarations;
  }

  @JsonProperty("projectTags")
  @Nonnull
  @Override
  public ImmutableList getProjectTags() {
    return projectTags;
  }

  @JsonProperty("sharingSettings")
  @Nonnull
  @Override
  public ProjectSharingSettings getSharingSettings() {
    return sharingSettings;
  }

  @JsonProperty("searchSettings")
  @Nonnull
  @Override
  public ProjectSearchSettings getSearchSettings() {
    return searchSettings;
  }

  @Override
  public String toString() {
    return "AllProjectSettings{"
        + "projectSettings=" + projectSettings + ", "
        + "entityCreationSettings=" + entityCreationSettings + ", "
        + "prefixDeclarations=" + prefixDeclarations + ", "
        + "projectTags=" + projectTags + ", "
        + "sharingSettings=" + sharingSettings + ", "
        + "searchSettings=" + searchSettings
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof AllProjectSettings) {
      AllProjectSettings that = (AllProjectSettings) o;
      return this.projectSettings.equals(that.getProjectSettings())
          && this.entityCreationSettings.equals(that.getEntityCreationSettings())
          && this.prefixDeclarations.equals(that.getPrefixDeclarations())
          && this.projectTags.equals(that.getProjectTags())
          && this.sharingSettings.equals(that.getSharingSettings())
          && this.searchSettings.equals(that.getSearchSettings());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= projectSettings.hashCode();
    h$ *= 1000003;
    h$ ^= entityCreationSettings.hashCode();
    h$ *= 1000003;
    h$ ^= prefixDeclarations.hashCode();
    h$ *= 1000003;
    h$ ^= projectTags.hashCode();
    h$ *= 1000003;
    h$ ^= sharingSettings.hashCode();
    h$ *= 1000003;
    h$ ^= searchSettings.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy