Enum Class NutzJsonAutoConfigurationProperties.Mode
java.lang.Object
java.lang.Enum<NutzJsonAutoConfigurationProperties.Mode>
tech.riemann.nif.nutz.json.NutzJsonAutoConfigurationProperties.Mode
- All Implemented Interfaces:
Serializable, Comparable<NutzJsonAutoConfigurationProperties.Mode>, Constable
- Enclosing class:
NutzJsonAutoConfigurationProperties
public static enum NutzJsonAutoConfigurationProperties.Mode
extends Enum<NutzJsonAutoConfigurationProperties.Mode>
JSON 输出模式枚举。
定义了不同的 JSON 格式化方式,每种模式对应一种预设的输出风格。
- Author:
- kerbores(kerbores@gmail.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPACT
压缩:去除所有空白字符以减小体积。 -
FULL
完整:保留完整的结构信息。 -
NICE
美化:具有良好的可读性,带有适当的缩进和换行。 -
FORLOOK
阅读友好:优化阅读体验的格式。 -
TIDY
整洁:在保证清晰的同时尽量节省空间。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-