接口 Enumerable<V>
- 所有超级接口:
Descriptive
Enumerable for
Enum- 从以下版本开始:
- 4.0
- 作者:
- Harry Yang
-
方法概要
修饰符和类型方法说明static <T extends Enumerable<V>,V>
Optional<T>default StringReturn a descriptiondefault VgetValue()static <T extends Enumerable<V>,V>
VGet the value corresponding to the namename()The default name of the enumeration, this method does not need to be implemented, the enumeration class is automatically inheritedstatic <T extends Enumerable<V>,V>
TReturns Enumerable byenum valuestatic <T extends Enumerable<V>,V>
Tstatic <T extends Enumerable<V>,V>
T
-
方法详细资料
-
getValue
-
getDescription
从接口复制的说明:DescriptiveReturn a description- 指定者:
getDescription在接口中Descriptive
-
name
String name()The default name of the enumeration, this method does not need to be implemented, the enumeration class is automatically inherited -
of
Returns Enumerable byenum value- 类型参数:
T- enumeration typeV- enumeration value type- 参数:
enumerable- enumvalue- enumeration value- 返回:
- enumeration instance
- 抛出:
NullPointerException- if enumerable isnull- 另请参阅:
-
getValue
Get the value corresponding to the name- 类型参数:
T- enum typeV- enumeration value type- 参数:
enumerable- enumeration classname- enumeration name- 返回:
- enumeration value
- 另请参阅:
-
of
- 类型参数:
T- enum typeV- enumeration value type- 参数:
defaultValue- default value- 另请参阅:
-
#of(Class, V)
-
of
- 类型参数:
T- enum typeV- enumeration value type- 参数:
defaultValue- default value- 另请参阅:
-
#of(Class, V)
-
find
- 返回:
- Optional of T
-