Enum Class AbilityKey
- 所有已实现的接口:
Serializable,Comparable<AbilityKey>,java.lang.constant.Constable
Ability key constant. It is used to constrain the ability key.
Ensure that return value of
Ensure that return value of
getName() is unique under one specify AbilityMode.- 作者:
- Daydreamer
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
枚举常量概要
枚举常量枚举常量说明For Test temporarily.For Test temporarily.For Test temporarily.For Distributed Lock.For fuzzy watch naming or config.Server support register or deregister persistent instance by grpc. -
方法概要
修饰符和类型方法说明static Collection<String>getAllNames(AbilityMode mode) Get all names.static Collection<AbilityKey>getAllValues(AbilityMode mode) Get all keys.static AbilityKeygetEnum(AbilityMode mode, String key) .getMode()getName()static booleanisLegalKey(AbilityMode mode, String name) Whether contains this name.static Map<AbilityKey,Boolean> mapEnum(AbilityMode mode, Map<String, Boolean> abilities) Map the string key to enum.mapStr(Map<AbilityKey, Boolean> abilities) .static AbilityKeyReturns the enum constant of this class with the specified name.static AbilityKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
枚举常量详细资料
-
SERVER_PERSISTENT_INSTANCE_BY_GRPC
Server support register or deregister persistent instance by grpc. -
SERVER_FUZZY_WATCH
For fuzzy watch naming or config. -
SERVER_DISTRIBUTED_LOCK
For Distributed Lock. -
SDK_CLIENT_FUZZY_WATCH
For Test temporarily. -
SDK_CLIENT_DISTRIBUTED_LOCK
For Test temporarily. -
CLUSTER_CLIENT_TEST_1
For Test temporarily.
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 如果参数为空值
-
getName
-
getDescription
-
getMode
-
getAllValues
Get all keys.- 返回:
- all keys
-
getAllNames
Get all names.- 返回:
- all names
-
isLegalKey
Whether contains this name.- 参数:
name- key name- 返回:
- whether contains
-
mapEnum
Map the string key to enum.- 参数:
abilities- map- 返回:
- enum map
-
mapStr
. Map the string key to enum- 参数:
abilities- map- 返回:
- enum map
-
getEnum
. getter to obtain enum- 参数:
key- string key- 返回:
- enum
-