public static enum JsonFactory.Feature extends Enum<JsonFactory.Feature>
JsonFactory.| 枚举常量和说明 |
|---|
CANONICALIZE_FIELD_NAMES
Feature that determines whether JSON object field names are to be
canonicalized (details of how canonicalization is done then further
specified by
INTERN_FIELD_NAMES). |
INTERN_FIELD_NAMES
Feature that determines whether JSON object field names are to be
canonicalized using
String.intern() or not: if enabled, all
field names will be intern()ed (and caller can count on this being
true for all such names); if disabled, no intern()ing is done. |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
collectDefaults()
Method that calculates bit set (flags) of all features that are
enabled by default.
|
boolean |
enabledByDefault() |
boolean |
enabledIn(int flags) |
int |
getMask() |
static JsonFactory.Feature |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonFactory.Feature[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final JsonFactory.Feature INTERN_FIELD_NAMES
String.intern() or not: if enabled, all
field names will be intern()ed (and caller can count on this being
true for all such names); if disabled, no intern()ing is done. There
may still be basic canonicalization (that is, same String will be
used to represent all identical object property names for a single
document).
Note: this setting only has effect if
CANONICALIZE_FIELD_NAMES is true -- otherwise no
canonicalization of any sort is done.
This setting is enabled by default.
public static final JsonFactory.Feature CANONICALIZE_FIELD_NAMES
INTERN_FIELD_NAMES).
This setting is enabled by default.
public static JsonFactory.Feature[] values()
for (JsonFactory.Feature c : JsonFactory.Feature.values()) System.out.println(c);
public static JsonFactory.Feature valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static int collectDefaults()
public boolean enabledByDefault()
public boolean enabledIn(int flags)
public int getMask()
Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.