public static enum TextJoiner.NullMode extends Enum<TextJoiner.NullMode>
null处理的模式| Enum Constant and Description |
|---|
IGNORE
忽略
null,即null元素不加入拼接的字符串 |
NULL_STRING
null转为null字符串 |
TO_EMPTY
null转为"" |
| Modifier and Type | Method and Description |
|---|---|
static TextJoiner.NullMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextJoiner.NullMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextJoiner.NullMode IGNORE
null,即null元素不加入拼接的字符串public static final TextJoiner.NullMode TO_EMPTY
null转为""public static final TextJoiner.NullMode NULL_STRING
null转为null字符串public static TextJoiner.NullMode[] values()
for (TextJoiner.NullMode c : TextJoiner.NullMode.values()) System.out.println(c);
public static TextJoiner.NullMode 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 © 2022. All rights reserved.