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

edu.stanford.protege.webprotege.criteria.AutoValue_EntityAnnotationCriteria Maven / Gradle / Ivy

There is a newer version: 0.9.2
Show newest version
package edu.stanford.protege.webprotege.criteria;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final AnnotationCriteria annotationCriteria;

  private final int annotationPresenceOrdinal;

  AutoValue_EntityAnnotationCriteria(
      AnnotationCriteria annotationCriteria,
      int annotationPresenceOrdinal) {
    if (annotationCriteria == null) {
      throw new NullPointerException("Null annotationCriteria");
    }
    this.annotationCriteria = annotationCriteria;
    this.annotationPresenceOrdinal = annotationPresenceOrdinal;
  }

  @JsonProperty("annotation")
  @Nonnull
  @Override
  public AnnotationCriteria getAnnotationCriteria() {
    return annotationCriteria;
  }

  @JsonIgnore
  @Override
  protected int getAnnotationPresenceOrdinal() {
    return annotationPresenceOrdinal;
  }

  @Override
  public String toString() {
    return "EntityAnnotationCriteria{"
        + "annotationCriteria=" + annotationCriteria + ", "
        + "annotationPresenceOrdinal=" + annotationPresenceOrdinal
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EntityAnnotationCriteria) {
      EntityAnnotationCriteria that = (EntityAnnotationCriteria) o;
      return this.annotationCriteria.equals(that.getAnnotationCriteria())
          && this.annotationPresenceOrdinal == that.getAnnotationPresenceOrdinal();
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy