Rabbit-R1/switch port/java/sources/com/alibaba/fastjson/serializer/SerializerFeature.java
2024-05-21 17:08:36 -04:00

44 lines
1.1 KiB
Java

package com.alibaba.fastjson.serializer;
/* loaded from: classes2.dex */
public enum SerializerFeature {
QuoteFieldNames,
UseSingleQuotes,
WriteMapNullValue,
WriteEnumUsingToString,
UseISO8601DateFormat,
WriteNullListAsEmpty,
WriteNullStringAsEmpty,
WriteNullNumberAsZero,
WriteNullBooleanAsFalse,
SkipTransientField,
SortField,
WriteTabAsSpecial,
PrettyFormat,
WriteClassName,
DisableCircularReferenceDetect,
WriteSlashAsSpecial,
WriteDateUseDateFormat,
NotWriteRootClassName,
DisableCheckSpecialChar,
BeanToArray,
WriteNonStringKeyAsString,
NotWriteDefaultValue;
public static final SerializerFeature[] EMPTY = new SerializerFeature[0];
public final int mask = 1 << ordinal();
SerializerFeature() {
}
public static int of(SerializerFeature[] serializerFeatureArr) {
if (serializerFeatureArr == null) {
return 0;
}
int i = 0;
for (SerializerFeature serializerFeature : serializerFeatureArr) {
i |= serializerFeature.mask;
}
return i;
}
}