org.graylog2.contentpacks.model.entities.AutoValue_ModelTypeEntity Maven / Gradle / Ivy
package org.graylog2.contentpacks.model.entities;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.processing.Generated;
import org.graylog2.contentpacks.model.entities.references.ValueReference;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ModelTypeEntity extends ModelTypeEntity {
private final ValueReference type;
AutoValue_ModelTypeEntity(
ValueReference type) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
}
@JsonValue
@Override
public ValueReference type() {
return type;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ModelTypeEntity) {
ModelTypeEntity that = (ModelTypeEntity) o;
return this.type.equals(that.type());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
return h$;
}
}