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

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

package edu.stanford.protege.webprotege.criteria;

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_EntityAnnotationValuesAreNotDisjointCriteria extends EntityAnnotationValuesAreNotDisjointCriteria {

  private final AnnotationPropertyCriteria firstProperty;

  private final AnnotationPropertyCriteria secondProperty;

  AutoValue_EntityAnnotationValuesAreNotDisjointCriteria(
      AnnotationPropertyCriteria firstProperty,
      AnnotationPropertyCriteria secondProperty) {
    if (firstProperty == null) {
      throw new NullPointerException("Null firstProperty");
    }
    this.firstProperty = firstProperty;
    if (secondProperty == null) {
      throw new NullPointerException("Null secondProperty");
    }
    this.secondProperty = secondProperty;
  }

  @JsonProperty("firstProperty")
  @Nonnull
  @Override
  public AnnotationPropertyCriteria getFirstProperty() {
    return firstProperty;
  }

  @JsonProperty("secondProperty")
  @Nonnull
  @Override
  public AnnotationPropertyCriteria getSecondProperty() {
    return secondProperty;
  }

  @Override
  public String toString() {
    return "EntityAnnotationValuesAreNotDisjointCriteria{"
        + "firstProperty=" + firstProperty + ", "
        + "secondProperty=" + secondProperty
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EntityAnnotationValuesAreNotDisjointCriteria) {
      EntityAnnotationValuesAreNotDisjointCriteria that = (EntityAnnotationValuesAreNotDisjointCriteria) o;
      return this.firstProperty.equals(that.getFirstProperty())
          && this.secondProperty.equals(that.getSecondProperty());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy