public interface ConfigContainer
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(ConfigType configType,
ConfigItem configItem)
check whether a config item of a certain config type exist.
|
<T> T |
get(ConfigType configType,
ConfigItem configItem)
try to get config value using config type and config item.
|
void |
set(ConfigType configType,
ConfigItem configItem,
Object value)
init a config item with certain config type, and the value can be any type.
|
boolean contains(ConfigType configType, ConfigItem configItem)
configType - config types in the config container, different config type can hold the same config item keyconfigItem - config items in the config container<T> T get(ConfigType configType, ConfigItem configItem)
T - the generics of return valueconfigType - config types in the config container, different config type can hold the same config item keyconfigItem - config items in the config containervoid set(ConfigType configType, ConfigItem configItem, Object value)
configType - config types in the config container, different config type can hold the same config item keyconfigItem - config items in the config containerCopyright © 2020. All rights reserved.