public enum IfAbsentEnum extends Enum<IfAbsentEnum> implements java.util.function.Predicate<Object>
| 枚举常量和说明 |
|---|
NOT_BLANK
NOT_BLANK 非空白字符串 例: "" -> false, " " -> false, "\r" -> false, "abc" -> true ...
|
NOT_EMPTY
非空字符串 例: "" -> false, " " -> true ...
|
NOT_NULL
非null
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
test(Object obj) |
static IfAbsentEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static IfAbsentEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfand, isEqual, negate, orpublic static final IfAbsentEnum NOT_NULL
public static final IfAbsentEnum NOT_EMPTY
public static final IfAbsentEnum NOT_BLANK
public static IfAbsentEnum[] values()
for (IfAbsentEnum c : IfAbsentEnum.values()) System.out.println(c);
public static IfAbsentEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean test(Object obj)
test 在接口中 java.util.function.Predicate<Object>Copyright © 2023. All rights reserved.