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