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

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

There is a newer version: 0.9.2
Show newest version
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_CompositeRelationshipValueCriteria extends CompositeRelationshipValueCriteria {

  private final MultiMatchType multiMatchType;

  private final List criteria;

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

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

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy