public enum NumberWriteMode extends Enum<NumberWriteMode>
Enum Constant and Description |
---|
JS
浏览器中Javascript兼容模式,此模式下,如果Long输出长度大于JS中最大长度,则转为字符串形式
|
NORMAL
一般模式,所有Long值写出为普通数字,如{"value": 123456789}
|
STRING
所有Long类型的数字均转为字符串形式,如{"value": "123456789"}
|
Modifier and Type | Method and Description |
---|---|
static NumberWriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberWriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberWriteMode NORMAL
public static final NumberWriteMode JS
public static final NumberWriteMode STRING
public static NumberWriteMode[] values()
for (NumberWriteMode c : NumberWriteMode.values()) System.out.println(c);
public static NumberWriteMode 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 nullCopyright © 2025. All rights reserved.