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

edu.stanford.protege.webprotege.viz.AutoValue_HeadNodeMatchesCriteria Maven / Gradle / Ivy

There is a newer version: 2.0.2-WHO
Show newest version
package edu.stanford.protege.webprotege.viz;

import edu.stanford.protege.webprotege.criteria.EntityMatchCriteria;
import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final EntityMatchCriteria nodeCriteria;

  AutoValue_HeadNodeMatchesCriteria(
      EntityMatchCriteria nodeCriteria) {
    if (nodeCriteria == null) {
      throw new NullPointerException("Null nodeCriteria");
    }
    this.nodeCriteria = nodeCriteria;
  }

  @Nonnull
  @Override
  public EntityMatchCriteria getNodeCriteria() {
    return nodeCriteria;
  }

  @Override
  public String toString() {
    return "HeadNodeMatchesCriteria{"
        + "nodeCriteria=" + nodeCriteria
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof HeadNodeMatchesCriteria) {
      HeadNodeMatchesCriteria that = (HeadNodeMatchesCriteria) o;
      return this.nodeCriteria.equals(that.getNodeCriteria());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy