org.graylog.plugins.pipelineprocessor.functions.json.$AutoValue_JsonUtils_Entry Maven / Gradle / Ivy
package org.graylog.plugins.pipelineprocessor.functions.json;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_JsonUtils_Entry extends JsonUtils.Entry {
private final String key;
private final Object value;
$AutoValue_JsonUtils_Entry(
String key,
@Nullable Object value) {
if (key == null) {
throw new NullPointerException("Null key");
}
this.key = key;
this.value = value;
}
@Override
public String key() {
return key;
}
@Nullable
@Override
public Object value() {
return value;
}
@Override
public String toString() {
return "Entry{"
+ "key=" + key + ", "
+ "value=" + value
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof JsonUtils.Entry) {
JsonUtils.Entry that = (JsonUtils.Entry) o;
return this.key.equals(that.key())
&& (this.value == null ? that.value() == null : this.value.equals(that.value()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= key.hashCode();
h$ *= 1000003;
h$ ^= (value == null) ? 0 : value.hashCode();
return h$;
}
}