public static enum JsonSerialize.Typing extends Enum<JsonSerialize.Typing>
JsonSerialize.typing() property
to define whether type detection is based on dynamic runtime
type (DYNAMIC) or declared type (STATIC).| 枚举常量和说明 |
|---|
DYNAMIC
Value that indicates that the actual dynamic runtime type is to
be used.
|
STATIC
Value that indicates that the static declared type is to
be used.
|
public static final JsonSerialize.Typing DYNAMIC
public static final JsonSerialize.Typing STATIC
public static JsonSerialize.Typing[] values()
for (JsonSerialize.Typing c : JsonSerialize.Typing.values()) System.out.println(c);
public static JsonSerialize.Typing valueOf(String name)
name - 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException如果参数为空值, - 则抛出 NullPointerException