mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
44 lines
1.1 KiB
Java
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;
|
|
}
|
|
}
|