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

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

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

import javax.annotation.Nonnull;
import javax.annotation.processing.Generated;

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

  private final CompositeEdgeCriteria inclusionCriteria;

  private final CompositeEdgeCriteria exclusionCriteria;

  AutoValue_SplitEdgeCriteria(
      CompositeEdgeCriteria inclusionCriteria,
      CompositeEdgeCriteria exclusionCriteria) {
    if (inclusionCriteria == null) {
      throw new NullPointerException("Null inclusionCriteria");
    }
    this.inclusionCriteria = inclusionCriteria;
    if (exclusionCriteria == null) {
      throw new NullPointerException("Null exclusionCriteria");
    }
    this.exclusionCriteria = exclusionCriteria;
  }

  @Nonnull
  @Override
  public CompositeEdgeCriteria getInclusionCriteria() {
    return inclusionCriteria;
  }

  @Nonnull
  @Override
  public CompositeEdgeCriteria getExclusionCriteria() {
    return exclusionCriteria;
  }

  @Override
  public String toString() {
    return "SplitEdgeCriteria{"
        + "inclusionCriteria=" + inclusionCriteria + ", "
        + "exclusionCriteria=" + exclusionCriteria
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof SplitEdgeCriteria) {
      SplitEdgeCriteria that = (SplitEdgeCriteria) o;
      return this.inclusionCriteria.equals(that.getInclusionCriteria())
          && this.exclusionCriteria.equals(that.getExclusionCriteria());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy