public abstract class EnumUtil
extends Object
枚举工具类
- 从以下版本开始:
- 2019年4月16日, 1.0
- 作者:
- Ready
-
-
方法概要
static <E extends Enum<?>>
E[]
static <T extends Enum<T>>
T
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
EnumUtil
public EnumUtil()
-
方法详细资料
-
of
根据枚举类型和名称,构建对应的枚举实例
- 返回:
- 返回对应的枚举值。如果找不到,则返回 null
-
getMatched
获取指定枚举类中 匹配指定条件的枚举数组
- 参数:
enumClass - 枚举类Class
values - 指定的枚举范围数组,如果为null,内部将会自动获取所有的枚举值
matcher - 枚举匹配器接口实现
- 从以下版本开始:
- 2.0.0