org.graylog2.storage.versionprobe.AutoValue_VersionResponse Maven / Gradle / Ivy
package org.graylog2.storage.versionprobe;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_VersionResponse extends VersionResponse {
private final String number;
private final String distribution;
AutoValue_VersionResponse(
String number,
@Nullable String distribution) {
if (number == null) {
throw new NullPointerException("Null number");
}
this.number = number;
this.distribution = distribution;
}
@Override
public String number() {
return number;
}
@Nullable
@Override
public String distribution() {
return distribution;
}
@Override
public String toString() {
return "VersionResponse{"
+ "number=" + number + ", "
+ "distribution=" + distribution
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof VersionResponse) {
VersionResponse that = (VersionResponse) o;
return this.number.equals(that.number())
&& (this.distribution == null ? that.distribution() == null : this.distribution.equals(that.distribution()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= number.hashCode();
h$ *= 1000003;
h$ ^= (distribution == null) ? 0 : distribution.hashCode();
return h$;
}
}