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

edu.stanford.protege.webprotege.criteria.AutoValue_CompositeAnnotationValueCriteria 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.JsonProperty;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final List annotationValueCriteria;

  private final MultiMatchType multiMatchType;

  AutoValue_CompositeAnnotationValueCriteria(
      List annotationValueCriteria,
      MultiMatchType multiMatchType) {
    if (annotationValueCriteria == null) {
      throw new NullPointerException("Null annotationValueCriteria");
    }
    this.annotationValueCriteria = annotationValueCriteria;
    if (multiMatchType == null) {
      throw new NullPointerException("Null multiMatchType");
    }
    this.multiMatchType = multiMatchType;
  }

  @Nonnull
  @JsonProperty("annotationValues")
  @Override
  public List getAnnotationValueCriteria() {
    return annotationValueCriteria;
  }

  @JsonProperty("matchType")
  @Nonnull
  @Override
  public MultiMatchType getMultiMatchType() {
    return multiMatchType;
  }

  @Override
  public String toString() {
    return "CompositeAnnotationValueCriteria{"
        + "annotationValueCriteria=" + annotationValueCriteria + ", "
        + "multiMatchType=" + multiMatchType
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CompositeAnnotationValueCriteria) {
      CompositeAnnotationValueCriteria that = (CompositeAnnotationValueCriteria) o;
      return this.annotationValueCriteria.equals(that.getAnnotationValueCriteria())
          && this.multiMatchType.equals(that.getMultiMatchType());
    }
    return false;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy