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

org.hisp.dhis.rules.models.AutoValue_RuleActionHideSection Maven / Gradle / Ivy


package org.hisp.dhis.rules.models;

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

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

  private final String data;
  private final String programStageSection;

  AutoValue_RuleActionHideSection(
      String data,
      String programStageSection) {
    if (data == null) {
      throw new NullPointerException("Null data");
    }
    this.data = data;
    if (programStageSection == null) {
      throw new NullPointerException("Null programStageSection");
    }
    this.programStageSection = programStageSection;
  }

  @Nonnull
  @Override
  public String data() {
    return data;
  }

  @Nonnull
  @Override
  public String programStageSection() {
    return programStageSection;
  }

  @Override
  public String toString() {
    return "RuleActionHideSection{"
        + "data=" + data + ", "
        + "programStageSection=" + programStageSection
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof RuleActionHideSection) {
      RuleActionHideSection that = (RuleActionHideSection) o;
      return (this.data.equals(that.data()))
           && (this.programStageSection.equals(that.programStageSection()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= this.data.hashCode();
    h *= 1000003;
    h ^= this.programStageSection.hashCode();
    return h;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy