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

edu.stanford.protege.webprotege.viz.AutoValue_ProjectUserEntityGraphSettings Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package edu.stanford.protege.webprotege.viz;

import com.fasterxml.jackson.annotation.JsonProperty;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.common.UserId;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

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

  private final ProjectId projectId;

  private final UserId getUserIdInternal;

  private final EntityGraphSettings getSettings;

  AutoValue_ProjectUserEntityGraphSettings(
      ProjectId projectId,
      @Nullable UserId getUserIdInternal,
      EntityGraphSettings getSettings) {
    if (projectId == null) {
      throw new NullPointerException("Null projectId");
    }
    this.projectId = projectId;
    this.getUserIdInternal = getUserIdInternal;
    if (getSettings == null) {
      throw new NullPointerException("Null getSettings");
    }
    this.getSettings = getSettings;
  }

  @JsonProperty("projectId")
  @Nonnull
  @Override
  public ProjectId projectId() {
    return projectId;
  }

  @JsonProperty("userId")
  @Nullable
  @Override
  public UserId getUserIdInternal() {
    return getUserIdInternal;
  }

  @JsonProperty("settings")
  @Nonnull
  @Override
  public EntityGraphSettings getSettings() {
    return getSettings;
  }

  @Override
  public String toString() {
    return "ProjectUserEntityGraphSettings{"
        + "projectId=" + projectId + ", "
        + "getUserIdInternal=" + getUserIdInternal + ", "
        + "getSettings=" + getSettings
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ProjectUserEntityGraphSettings) {
      ProjectUserEntityGraphSettings that = (ProjectUserEntityGraphSettings) o;
      return this.projectId.equals(that.projectId())
          && (this.getUserIdInternal == null ? that.getUserIdInternal() == null : this.getUserIdInternal.equals(that.getUserIdInternal()))
          && this.getSettings.equals(that.getSettings());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= projectId.hashCode();
    h$ *= 1000003;
    h$ ^= (getUserIdInternal == null) ? 0 : getUserIdInternal.hashCode();
    h$ *= 1000003;
    h$ ^= getSettings.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy