com.cerner.beadledom.jackson.AutoValue_JsonGeneratorFeatureFlag Maven / Gradle / Ivy
package com.cerner.beadledom.jackson;
import com.fasterxml.jackson.core.JsonGenerator;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_JsonGeneratorFeatureFlag extends JsonGeneratorFeatureFlag {
private final JsonGenerator.Feature feature;
private final Boolean isEnabled;
AutoValue_JsonGeneratorFeatureFlag(
JsonGenerator.Feature feature,
Boolean isEnabled) {
if (feature == null) {
throw new NullPointerException("Null feature");
}
this.feature = feature;
if (isEnabled == null) {
throw new NullPointerException("Null isEnabled");
}
this.isEnabled = isEnabled;
}
@Override
public JsonGenerator.Feature feature() {
return feature;
}
@Override
public Boolean isEnabled() {
return isEnabled;
}
@Override
public String toString() {
return "JsonGeneratorFeatureFlag{"
+ "feature=" + feature + ", "
+ "isEnabled=" + isEnabled
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof JsonGeneratorFeatureFlag) {
JsonGeneratorFeatureFlag that = (JsonGeneratorFeatureFlag) o;
return this.feature.equals(that.feature())
&& this.isEnabled.equals(that.isEnabled());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= feature.hashCode();
h$ *= 1000003;
h$ ^= isEnabled.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy