public enum SerializerFeature extends Enum<SerializerFeature>
Modifier and Type | Field and Description |
---|---|
static SerializerFeature[] |
EMPTY |
int |
mask |
static int |
WRITE_MAP_NULL_FEATURES |
Modifier and Type | Method and Description |
---|---|
static int |
config(int features,
SerializerFeature feature,
boolean state) |
int |
getMask() |
static boolean |
isEnabled(int features,
int featuresB,
SerializerFeature feature) |
static boolean |
isEnabled(int features,
SerializerFeature feature) |
static int |
of(SerializerFeature[] features) |
static SerializerFeature |
valueOf(String name)
Returns 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.
|
public static final SerializerFeature QuoteFieldNames
public static final SerializerFeature UseSingleQuotes
public static final SerializerFeature WriteMapNullValue
public static final SerializerFeature WriteEnumUsingToString
public static final SerializerFeature WriteEnumUsingName
public static final SerializerFeature UseISO8601DateFormat
public static final SerializerFeature WriteNullListAsEmpty
public static final SerializerFeature WriteNullStringAsEmpty
public static final SerializerFeature WriteNullNumberAsZero
public static final SerializerFeature WriteNullBooleanAsFalse
public static final SerializerFeature SkipTransientField
public static final SerializerFeature SortField
@Deprecated public static final SerializerFeature WriteTabAsSpecial
public static final SerializerFeature PrettyFormat
public static final SerializerFeature WriteClassName
public static final SerializerFeature DisableCircularReferenceDetect
public static final SerializerFeature WriteSlashAsSpecial
public static final SerializerFeature BrowserCompatible
public static final SerializerFeature WriteDateUseDateFormat
public static final SerializerFeature NotWriteRootClassName
public static final SerializerFeature DisableCheckSpecialChar
public static final SerializerFeature BeanToArray
public static final SerializerFeature WriteNonStringKeyAsString
public static final SerializerFeature NotWriteDefaultValue
public static final SerializerFeature BrowserSecure
public static final SerializerFeature IgnoreNonFieldGetter
public static final SerializerFeature WriteNonStringValueAsString
public static final SerializerFeature IgnoreErrorGetter
public static final SerializerFeature WriteBigDecimalAsPlain
public static final SerializerFeature MapSortField
public final int mask
public static final SerializerFeature[] EMPTY
public static final int WRITE_MAP_NULL_FEATURES
public static SerializerFeature[] values()
for (SerializerFeature c : SerializerFeature.values()) System.out.println(c);
public static SerializerFeature valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getMask()
public static boolean isEnabled(int features, SerializerFeature feature)
public static boolean isEnabled(int features, int featuresB, SerializerFeature feature)
public static int config(int features, SerializerFeature feature, boolean state)
public static int of(SerializerFeature[] features)
Copyright © 2012–2022 Alibaba Group. All rights reserved.