org.graylog2.configuration.validators.AutoValue_SearchVersionRange Maven / Gradle / Ivy
package org.graylog2.configuration.validators;
import javax.annotation.processing.Generated;
import org.graylog2.storage.SearchVersion;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_SearchVersionRange extends SearchVersionRange {
private final SearchVersion.Distribution distribution;
private final String expression;
AutoValue_SearchVersionRange(
SearchVersion.Distribution distribution,
String expression) {
if (distribution == null) {
throw new NullPointerException("Null distribution");
}
this.distribution = distribution;
if (expression == null) {
throw new NullPointerException("Null expression");
}
this.expression = expression;
}
@Override
public SearchVersion.Distribution distribution() {
return distribution;
}
@Override
public String expression() {
return expression;
}
@Override
public String toString() {
return "SearchVersionRange{"
+ "distribution=" + distribution + ", "
+ "expression=" + expression
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof SearchVersionRange) {
SearchVersionRange that = (SearchVersionRange) o;
return this.distribution.equals(that.distribution())
&& this.expression.equals(that.expression());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= distribution.hashCode();
h$ *= 1000003;
h$ ^= expression.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy