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

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

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

import edu.stanford.protege.webprotege.entity.OWLEntityData;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final OWLEntityData entityData;

  private final String rendering;

  AutoValue_GetEntityHtmlRenderingResult(
      OWLEntityData entityData,
      String rendering) {
    if (entityData == null) {
      throw new NullPointerException("Null entityData");
    }
    this.entityData = entityData;
    if (rendering == null) {
      throw new NullPointerException("Null rendering");
    }
    this.rendering = rendering;
  }

  @Nonnull
  @Override
  public OWLEntityData getEntityData() {
    return entityData;
  }

  @Nonnull
  @Override
  public String getRendering() {
    return rendering;
  }

  @Override
  public String toString() {
    return "GetEntityHtmlRenderingResult{"
        + "entityData=" + entityData + ", "
        + "rendering=" + rendering
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GetEntityHtmlRenderingResult) {
      GetEntityHtmlRenderingResult that = (GetEntityHtmlRenderingResult) o;
      return this.entityData.equals(that.getEntityData())
          && this.rendering.equals(that.getRendering());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy