org.hisp.dhis.rules.models.AutoValue_RuleActionHideOptionGroup 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_RuleActionHideOptionGroup extends RuleActionHideOptionGroup {
private final String data;
private final AttributeType attributeType;
private final String content;
private final String optionGroup;
private final String field;
AutoValue_RuleActionHideOptionGroup(
String data,
AttributeType attributeType,
String content,
String optionGroup,
String field) {
if (data == null) {
throw new NullPointerException("Null data");
}
this.data = data;
if (attributeType == null) {
throw new NullPointerException("Null attributeType");
}
this.attributeType = attributeType;
if (content == null) {
throw new NullPointerException("Null content");
}
this.content = content;
if (optionGroup == null) {
throw new NullPointerException("Null optionGroup");
}
this.optionGroup = optionGroup;
if (field == null) {
throw new NullPointerException("Null field");
}
this.field = field;
}
@Nonnull
@Override
public String data() {
return data;
}
@Nonnull
@Override
public AttributeType attributeType() {
return attributeType;
}
@Nonnull
@Override
public String content() {
return content;
}
@Nonnull
@Override
public String optionGroup() {
return optionGroup;
}
@Nonnull
@Override
public String field() {
return field;
}
@Override
public String toString() {
return "RuleActionHideOptionGroup{"
+ "data=" + data + ", "
+ "attributeType=" + attributeType + ", "
+ "content=" + content + ", "
+ "optionGroup=" + optionGroup + ", "
+ "field=" + field
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RuleActionHideOptionGroup) {
RuleActionHideOptionGroup that = (RuleActionHideOptionGroup) o;
return (this.data.equals(that.data()))
&& (this.attributeType.equals(that.attributeType()))
&& (this.content.equals(that.content()))
&& (this.optionGroup.equals(that.optionGroup()))
&& (this.field.equals(that.field()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.data.hashCode();
h *= 1000003;
h ^= this.attributeType.hashCode();
h *= 1000003;
h ^= this.content.hashCode();
h *= 1000003;
h ^= this.optionGroup.hashCode();
h *= 1000003;
h ^= this.field.hashCode();
return h;
}
}