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

edu.stanford.protege.webprotege.entity.AutoValue_OWLClassData Maven / Gradle / Ivy

There is a newer version: 0.9.6-WHO
Show newest version
package edu.stanford.protege.webprotege.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.common.collect.ImmutableList;
import edu.stanford.protege.webprotege.common.ShortForm;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;
import org.semanticweb.owlapi.model.OWLClass;

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

  private final ImmutableList shortForms;

  private final boolean deprecated;

  private final OWLClass object;

  AutoValue_OWLClassData(
      ImmutableList shortForms,
      boolean deprecated,
      OWLClass object) {
    if (shortForms == null) {
      throw new NullPointerException("Null shortForms");
    }
    this.shortForms = shortForms;
    this.deprecated = deprecated;
    if (object == null) {
      throw new NullPointerException("Null object");
    }
    this.object = object;
  }

  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  @Override
  public ImmutableList getShortForms() {
    return shortForms;
  }

  @JsonInclude(JsonInclude.Include.NON_DEFAULT)
  @Override
  public boolean isDeprecated() {
    return deprecated;
  }

  @Nonnull
  @Override
  public OWLClass getObject() {
    return object;
  }

  @Override
  public String toString() {
    return "OWLClassData{"
        + "shortForms=" + shortForms + ", "
        + "deprecated=" + deprecated + ", "
        + "object=" + object
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof OWLClassData) {
      OWLClassData that = (OWLClassData) o;
      return this.shortForms.equals(that.getShortForms())
          && this.deprecated == that.isDeprecated()
          && this.object.equals(that.getObject());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= shortForms.hashCode();
    h$ *= 1000003;
    h$ ^= deprecated ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= object.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy