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

edu.stanford.protege.webprotege.criteria.AutoValue_EntityRelationshipCriteria 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_EntityRelationshipCriteria extends EntityRelationshipCriteria {

  private final RelationshipPresence relationshipPresence;

  private final RelationshipPropertyCriteria relationshipPropertyCriteria;

  private final RelationshipValueCriteria relationshipValueCriteria;

  AutoValue_EntityRelationshipCriteria(
      RelationshipPresence relationshipPresence,
      RelationshipPropertyCriteria relationshipPropertyCriteria,
      RelationshipValueCriteria relationshipValueCriteria) {
    if (relationshipPresence == null) {
      throw new NullPointerException("Null relationshipPresence");
    }
    this.relationshipPresence = relationshipPresence;
    if (relationshipPropertyCriteria == null) {
      throw new NullPointerException("Null relationshipPropertyCriteria");
    }
    this.relationshipPropertyCriteria = relationshipPropertyCriteria;
    if (relationshipValueCriteria == null) {
      throw new NullPointerException("Null relationshipValueCriteria");
    }
    this.relationshipValueCriteria = relationshipValueCriteria;
  }

  @Nonnull
  @JsonProperty("presence")
  @Override
  public RelationshipPresence getRelationshipPresence() {
    return relationshipPresence;
  }

  @Nonnull
  @JsonProperty("property")
  @Override
  public RelationshipPropertyCriteria getRelationshipPropertyCriteria() {
    return relationshipPropertyCriteria;
  }

  @Nonnull
  @JsonProperty("value")
  @Override
  public RelationshipValueCriteria getRelationshipValueCriteria() {
    return relationshipValueCriteria;
  }

  @Override
  public String toString() {
    return "EntityRelationshipCriteria{"
        + "relationshipPresence=" + relationshipPresence + ", "
        + "relationshipPropertyCriteria=" + relationshipPropertyCriteria + ", "
        + "relationshipValueCriteria=" + relationshipValueCriteria
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof EntityRelationshipCriteria) {
      EntityRelationshipCriteria that = (EntityRelationshipCriteria) o;
      return this.relationshipPresence.equals(that.getRelationshipPresence())
          && this.relationshipPropertyCriteria.equals(that.getRelationshipPropertyCriteria())
          && this.relationshipValueCriteria.equals(that.getRelationshipValueCriteria());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= relationshipPresence.hashCode();
    h$ *= 1000003;
    h$ ^= relationshipPropertyCriteria.hashCode();
    h$ *= 1000003;
    h$ ^= relationshipValueCriteria.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy