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

org.hisp.dhis.rules.models.AutoValue_RuleActionDisplayKeyValuePair 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_RuleActionDisplayKeyValuePair extends RuleActionDisplayKeyValuePair {

  private final String data;
  private final String content;
  private final String location;

  AutoValue_RuleActionDisplayKeyValuePair(
      String data,
      String content,
      String location) {
    if (data == null) {
      throw new NullPointerException("Null data");
    }
    this.data = data;
    if (content == null) {
      throw new NullPointerException("Null content");
    }
    this.content = content;
    if (location == null) {
      throw new NullPointerException("Null location");
    }
    this.location = location;
  }

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

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

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

  @Override
  public String toString() {
    return "RuleActionDisplayKeyValuePair{"
        + "data=" + data + ", "
        + "content=" + content + ", "
        + "location=" + location
        + "}";
  }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy