程序包 cn.linjpxc.enumx
接口 EnumValue<E extends Enum<E>,V>
- 类型参数:
E- 枚举类型V- 枚举值类型
- 所有超级接口:
Serializable,Valuable<V>
统一枚举值接口。
- 作者:
- linjpxc
-
方法详细资料
-
getDeclaringClass
- 另请参阅:
-
valueOf
Returns the enum constant of the specified enum type with the specified value.- 类型参数:
E- The enum type whose constant is to be returned- 参数:
enumType- theClassobject of the enum type from which to return a constantvalue- the value of the constant to return- 返回:
- the enum constant of the specified enum type with the specified value
- 抛出:
IllegalArgumentException- if the specified enum type has no constant with the specified value, or the specified class object does not represent an enum typeNullPointerException- ifenumTypeornameis null
-
toString
-
compare
提供实例值比较。若实例的值实现Comparable接口,则比较使用实例值比较,否则使用枚举名称比较Enum.compareTo(Enum)- 类型参数:
E- 枚举类型V- 枚举值类型- 参数:
left- leftright- right- 返回:
Comparable.compareTo(Object)
-