| 程序包 | 说明 |
|---|---|
| com.github.cosycode.codedict.core |
| 限定符和类型 | 字段和说明 |
|---|---|
private static Map<IDictItem,DictItemBean> |
StaticDictPool.dictItemMap
用于存储字典数据
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends IDictItem> |
DictItems.getByLabel(Class<T> enumClass,
String label)
通过label来获取enumClass中匹配的枚举对象
|
static <T extends IDictItem> |
DictItems.getByLabelForMulti(Class<T> enumClass,
String label)
通过label来获取enumClass中匹配的枚举对象
|
static <T extends IDictItem> |
DictItems.getByValue(Class<T> enumClass,
String value)
通过value来获取enumClass中匹配的枚举对象
|
static <T extends IDictItem> |
DictItems.getByValueForMulti(Class<T> enumClass,
String value)
通过value来获取enumClass中匹配的枚举对象
|
static <T extends IDictItem> |
DictItems.getLabelByValue(Class<T> enumClass,
String value)
通过 value 来获取 label
|
static <T extends IDictItem> |
DictItems.getLabelByValueForMulti(Class<T> enumClass,
String value)
通过 value 来获取 label
|
static <T extends IDictItem> |
DictItems.getValueByLabel(Class<T> enumClass,
String label)
通过 label 来获取 value
|
static <T extends IDictItem> |
DictItems.getValueByLabelForMulti(Class<T> enumClass,
String label)
通过 label 来获取 value
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DictItemBean |
StaticDictPool.getDictItem(IDictItem iDictItem)
获取静态数据
|
static void |
StaticDictPool.putDictItem(IDictItem iCodeItem,
String value,
String label)
往 map 中添加代码项
|
Copyright © 2020. All rights reserved.