org.hisp.dhis.rules.models.AutoValue_RuleActionScheduleMessage 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_RuleActionScheduleMessage extends RuleActionScheduleMessage {
private final String data;
private final String notification;
AutoValue_RuleActionScheduleMessage(
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 "RuleActionScheduleMessage{"
+ "data=" + data + ", "
+ "notification=" + notification
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RuleActionScheduleMessage) {
RuleActionScheduleMessage that = (RuleActionScheduleMessage) 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;
}
}