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

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

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableMap;
import edu.stanford.protege.webprotege.common.ProjectId;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final ProjectId projectId;

  private final ImmutableMap prefixes;

  AutoValue_PrefixDeclarations(
      ProjectId projectId,
      ImmutableMap prefixes) {
    if (projectId == null) {
      throw new NullPointerException("Null projectId");
    }
    this.projectId = projectId;
    if (prefixes == null) {
      throw new NullPointerException("Null prefixes");
    }
    this.prefixes = prefixes;
  }

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

  @JsonProperty("prefixes")
  @Nonnull
  @Override
  public ImmutableMap getPrefixes() {
    return prefixes;
  }

  @Override
  public String toString() {
    return "PrefixDeclarations{"
        + "projectId=" + projectId + ", "
        + "prefixes=" + prefixes
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PrefixDeclarations) {
      PrefixDeclarations that = (PrefixDeclarations) o;
      return this.projectId.equals(that.getProjectId())
          && this.prefixes.equals(that.getPrefixes());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy