alexandroid/decompiled/jadx/sources/com/fasterxml/jackson/annotation/JsonSetter.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

172 lines
5.5 KiB
Java

package com.fasterxml.jackson.annotation;
import com.amazon.alexa.ra.core.ui.markdown.parser.formatter.MarkdownConstants;
import java.io.Serializable;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@JacksonAnnotation
@Target({ElementType.ANNOTATION_TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
/* loaded from: classes7.dex */
public @interface JsonSetter {
Nulls contentNulls() default Nulls.DEFAULT;
Nulls nulls() default Nulls.DEFAULT;
String value() default "";
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static class Value implements JacksonAnnotationValue<JsonSetter>, Serializable {
protected static final Value EMPTY;
private static final long serialVersionUID = 1;
private final Nulls _contentNulls;
private final Nulls _nulls;
static {
Nulls nulls = Nulls.DEFAULT;
EMPTY = new Value(nulls, nulls);
}
public Value(Nulls nulls, Nulls nulls2) {
this._nulls = nulls;
this._contentNulls = nulls2;
}
private static boolean _empty(Nulls nulls, Nulls nulls2) {
Nulls nulls3 = Nulls.DEFAULT;
return nulls == nulls3 && nulls2 == nulls3;
}
public static Value construct(Nulls nulls, Nulls nulls2) {
if (nulls == null) {
nulls = Nulls.DEFAULT;
}
if (nulls2 == null) {
nulls2 = Nulls.DEFAULT;
}
return _empty(nulls, nulls2) ? EMPTY : new Value(nulls, nulls2);
}
public static Value empty() {
return EMPTY;
}
public static Value forContentNulls(Nulls nulls) {
return construct(Nulls.DEFAULT, nulls);
}
public static Value forValueNulls(Nulls nulls) {
return construct(nulls, Nulls.DEFAULT);
}
public static Value from(JsonSetter jsonSetter) {
return jsonSetter == null ? EMPTY : construct(jsonSetter.nulls(), jsonSetter.contentNulls());
}
public static Value merge(Value value, Value value2) {
return value == null ? value2 : value.withOverrides(value2);
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj != null && obj.getClass() == getClass()) {
Value value = (Value) obj;
if (value._nulls == this._nulls && value._contentNulls == this._contentNulls) {
return true;
}
}
return false;
}
public Nulls getContentNulls() {
return this._contentNulls;
}
public Nulls getValueNulls() {
return this._nulls;
}
public int hashCode() {
return this._nulls.ordinal() + (this._contentNulls.ordinal() << 2);
}
public Nulls nonDefaultContentNulls() {
Nulls nulls = this._contentNulls;
if (nulls == Nulls.DEFAULT) {
return null;
}
return nulls;
}
public Nulls nonDefaultValueNulls() {
Nulls nulls = this._nulls;
if (nulls == Nulls.DEFAULT) {
return null;
}
return nulls;
}
public Object readResolve() {
return _empty(this._nulls, this._contentNulls) ? EMPTY : this;
}
public String toString() {
return "JsonSetter.Value(valueNulls=" + this._nulls + ",contentNulls=" + this._contentNulls + MarkdownConstants.RIGHT_PARENTHESIS;
}
@Override // com.fasterxml.jackson.annotation.JacksonAnnotationValue
public Class<JsonSetter> valueFor() {
return JsonSetter.class;
}
public Value withContentNulls(Nulls nulls) {
if (nulls == null) {
nulls = Nulls.DEFAULT;
}
return nulls == this._contentNulls ? this : construct(this._nulls, nulls);
}
public Value withOverrides(Value value) {
if (value == null || value == EMPTY) {
return this;
}
Nulls nulls = value._nulls;
Nulls nulls2 = value._contentNulls;
Nulls nulls3 = Nulls.DEFAULT;
if (nulls == nulls3) {
nulls = this._nulls;
}
if (nulls2 == nulls3) {
nulls2 = this._contentNulls;
}
return (nulls == this._nulls && nulls2 == this._contentNulls) ? this : construct(nulls, nulls2);
}
public Value withValueNulls(Nulls nulls, Nulls nulls2) {
if (nulls == null) {
nulls = Nulls.DEFAULT;
}
if (nulls2 == null) {
nulls2 = Nulls.DEFAULT;
}
return (nulls == this._nulls && nulls2 == this._contentNulls) ? this : construct(nulls, nulls2);
}
public static Value forValueNulls(Nulls nulls, Nulls nulls2) {
return construct(nulls, nulls2);
}
public Value withValueNulls(Nulls nulls) {
if (nulls == null) {
nulls = Nulls.DEFAULT;
}
return nulls == this._nulls ? this : construct(nulls, this._contentNulls);
}
}
}