Package com.alibaba.fastjson.serializer
Enum SerializerFeature
- All Implemented Interfaces:
Serializable,Comparable<SerializerFeature>,java.lang.constant.Constable
- Author:
- wenshao[szujobs@hotmail.com]
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.用枚举name()输出用枚举toString()值输出Deprecated. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intconfig(int features, SerializerFeature feature, boolean state) final intgetMask()static booleanisEnabled(int features, int features1, SerializerFeature feature) static booleanisEnabled(int features, SerializerFeature feature) static intof(SerializerFeature[] features) static SerializerFeatureReturns the enum constant of this type with the specified name.static SerializerFeature[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QuoteFieldNames
-
UseSingleQuotes
-
WriteMapNullValue
-
WriteEnumUsingToString
用枚举toString()值输出 -
WriteEnumUsingName
用枚举name()输出 -
UseISO8601DateFormat
-
WriteNullListAsEmpty
- Since:
- 1.1
-
WriteNullStringAsEmpty
- Since:
- 1.1
-
WriteNullNumberAsZero
- Since:
- 1.1
-
WriteNullBooleanAsFalse
- Since:
- 1.1
-
SkipTransientField
- Since:
- 1.1
-
SortField
- Since:
- 1.1
-
WriteTabAsSpecial
Deprecated.- Since:
- 1.1.1
-
PrettyFormat
- Since:
- 1.1.2
-
WriteClassName
- Since:
- 1.1.2
-
DisableCircularReferenceDetect
- Since:
- 1.1.6
-
WriteSlashAsSpecial
- Since:
- 1.1.9
-
BrowserCompatible
- Since:
- 1.1.10
-
WriteDateUseDateFormat
- Since:
- 1.1.14
-
NotWriteRootClassName
- Since:
- 1.1.15
-
DisableCheckSpecialChar
Deprecated.- Since:
- 1.1.19
-
BeanToArray
- Since:
- 1.1.35
-
WriteNonStringKeyAsString
- Since:
- 1.1.37
-
NotWriteDefaultValue
- Since:
- 1.1.42
-
BrowserSecure
- Since:
- 1.2.6
-
IgnoreNonFieldGetter
- Since:
- 1.2.7
-
WriteNonStringValueAsString
- Since:
- 1.2.9
-
IgnoreErrorGetter
- Since:
- 1.2.11
-
WriteBigDecimalAsPlain
- Since:
- 1.2.16
-
MapSortField
- Since:
- 1.2.27
-
-
Field Details
-
EMPTY
-
WRITE_MAP_NULL_FEATURES
public static final int WRITE_MAP_NULL_FEATURES -
mask
public final int mask
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isEnabled
-
isEnabled
-
config
-
of
-
getMask
public final int getMask()
-