Enum
枚举类
Constructor Summary
Public Constructor | ||
public |
constructor(map: Object): Enum 创建一个枚举类对象 |
Method Summary
Public Methods | ||
public |
根据 index 获取 key 值 |
|
public |
isValidKey(key: String): Boolean 判断键值是否为合法值 |
|
public |
value(index: Integer): any 通过索引(index) 获取值 |
Public Constructors
Public Methods
public get(index: Integer): String source
根据 index 获取 key 值
Params:
Name | Type | Attribute | Description |
index | Integer | 索引 |
public isValidKey(key: String): Boolean source
判断键值是否为合法值
Params:
Name | Type | Attribute | Description |
key | String | 键值 |
public value(index: Integer): any source
通过索引(index) 获取值
Params:
Name | Type | Attribute | Description |
index | Integer | 索引 |
Return:
any |