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

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

package edu.stanford.protege.webprotege.criteria;

import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final List criteria;

  private final MultiMatchType multiMatchType;

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

  @Nonnull
  @Override
  public List getCriteria() {
    return criteria;
  }

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy