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

edu.stanford.protege.webprotege.renderer.AutoValue_GetEntityHtmlRenderingAction Maven / Gradle / Ivy

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

import edu.stanford.protege.webprotege.common.ProjectId;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
import org.semanticweb.owlapi.model.OWLEntity;

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

  private final ProjectId projectId;

  private final OWLEntity getEntity;

  AutoValue_GetEntityHtmlRenderingAction(
      ProjectId projectId,
      OWLEntity getEntity) {
    if (projectId == null) {
      throw new NullPointerException("Null projectId");
    }
    this.projectId = projectId;
    if (getEntity == null) {
      throw new NullPointerException("Null getEntity");
    }
    this.getEntity = getEntity;
  }

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

  @Nonnull
  @Override
  public OWLEntity getEntity() {
    return getEntity;
  }

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GetEntityHtmlRenderingAction) {
      GetEntityHtmlRenderingAction that = (GetEntityHtmlRenderingAction) o;
      return this.projectId.equals(that.projectId())
          && this.getEntity.equals(that.getEntity());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy