org.graylog2.contentpacks.model.AutoValue_ModelId 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_ModelId extends ModelId {
private final String id;
AutoValue_ModelId(
String id) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@JsonValue
@Override
public String id() {
return id;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ModelId) {
ModelId that = (ModelId) o;
return this.id.equals(that.id());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy