org.graylog2.contentpacks.model.AutoValue_ModelVersion Maven / Gradle / Ivy
package org.graylog2.contentpacks.model;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ModelVersion extends ModelVersion {
private final String version;
AutoValue_ModelVersion(
String version) {
if (version == null) {
throw new NullPointerException("Null version");
}
this.version = version;
}
@JsonValue
@Override
public String version() {
return version;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ModelVersion) {
ModelVersion that = (ModelVersion) o;
return this.version.equals(that.version());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= version.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy