Package org.miaixz.bus.core.text
Enum Class StringJoiner.NullMode
- All Implemented Interfaces:
Serializable,Comparable<StringJoiner.NullMode>,Constable
- Enclosing class:
StringJoiner
null处理的模式-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription忽略null,即null元素不加入拼接的字符串null转为null字符串null转为"" -
Method Summary
Modifier and TypeMethodDescriptionstatic StringJoiner.NullModeReturns the enum constant of this class with the specified name.static StringJoiner.NullMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
忽略null,即null元素不加入拼接的字符串 -
TO_EMPTY
null转为"" -
NULL_STRING
null转为null字符串
-
-
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
-