org.graylog2.contentpacks.model.constraints.$AutoValue_ConstraintCheckResult Maven / Gradle / Ivy
package org.graylog2.contentpacks.model.constraints;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ConstraintCheckResult extends ConstraintCheckResult {
private final Constraint constraint;
private final boolean fulfilled;
$AutoValue_ConstraintCheckResult(
Constraint constraint,
boolean fulfilled) {
if (constraint == null) {
throw new NullPointerException("Null constraint");
}
this.constraint = constraint;
this.fulfilled = fulfilled;
}
@JsonProperty
@Override
public Constraint constraint() {
return constraint;
}
@JsonProperty
@Override
public boolean fulfilled() {
return fulfilled;
}
@Override
public String toString() {
return "ConstraintCheckResult{"
+ "constraint=" + constraint + ", "
+ "fulfilled=" + fulfilled
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ConstraintCheckResult) {
ConstraintCheckResult that = (ConstraintCheckResult) o;
return this.constraint.equals(that.constraint())
&& this.fulfilled == that.fulfilled();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= constraint.hashCode();
h$ *= 1000003;
h$ ^= fulfilled ? 1231 : 1237;
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy