public class DefaultConfigContainer extends Object implements ConfigContainer
| 构造器和说明 |
|---|
DefaultConfigContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public boolean contains(ConfigType configType, ConfigItem configItem)
ConfigContainercontains 在接口中 ConfigContainerconfigType - config types in the config container, different config type can hold the same config item keyconfigItem - config items in the config containerpublic <T> T get(ConfigType configType, ConfigItem configItem)
ConfigContainerget 在接口中 ConfigContainerT - 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 containerpublic void set(ConfigType configType, ConfigItem configItem, Object value)
ConfigContainerset 在接口中 ConfigContainerconfigType - config types in the config container, different config type can hold the same config item keyconfigItem - config items in the config containerCopyright © 2021. All rights reserved.