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

org.hisp.dhis.rules.models.AutoValue_RuleActionSendMessage 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_RuleActionSendMessage extends RuleActionSendMessage {

  private final String data;
  private final String notification;

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

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy