alexandroid/decompiled/jadx/sources/com/fasterxml/jackson/annotation/JsonIncludeProperties.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

99 lines
3.3 KiB
Java

package com.fasterxml.jackson.annotation;
import java.io.Serializable;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@JacksonAnnotation
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
/* loaded from: classes7.dex */
public @interface JsonIncludeProperties {
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static class Value implements JacksonAnnotationValue<JsonIncludeProperties>, Serializable {
protected static final Value ALL = new Value(null);
private static final long serialVersionUID = 1;
protected final Set<String> _included;
public Value(Set<String> set) {
this._included = set;
}
private static Set<String> _asSet(String[] strArr) {
if (strArr == null || strArr.length == 0) {
return Collections.EMPTY_SET;
}
HashSet hashSet = new HashSet(strArr.length);
for (String str : strArr) {
hashSet.add(str);
}
return hashSet;
}
private static boolean _equals(Set<String> set, Set<String> set2) {
return set == null ? set2 == null : set.equals(set2);
}
public static Value all() {
return ALL;
}
public static Value from(JsonIncludeProperties jsonIncludeProperties) {
return jsonIncludeProperties == null ? ALL : new Value(_asSet(jsonIncludeProperties.value()));
}
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
return obj != null && obj.getClass() == getClass() && _equals(this._included, ((Value) obj)._included);
}
public Set<String> getIncluded() {
return this._included;
}
public int hashCode() {
Set<String> set = this._included;
if (set == null) {
return 0;
}
return set.size();
}
public String toString() {
return String.format("JsonIncludeProperties.Value(included=%s)", this._included);
}
@Override // com.fasterxml.jackson.annotation.JacksonAnnotationValue
public Class<JsonIncludeProperties> valueFor() {
return JsonIncludeProperties.class;
}
public Value withOverrides(Value value) {
Set<String> included;
if (value == null || (included = value.getIncluded()) == null) {
return this;
}
if (this._included == null) {
return value;
}
HashSet hashSet = new HashSet();
for (String str : included) {
if (this._included.contains(str)) {
hashSet.add(str);
}
}
return new Value(hashSet);
}
}
String[] value() default {};
}