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; } }