@Deprecated public class DefaultConfigContainer extends Object implements ConfigContainer
| Constructor and Description |
|---|
DefaultConfigContainer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ConfigType configType,
ConfigItem configItem)
Deprecated.
check whether a config item of a certain config type exist.
|
<T> T |
get(ConfigType configType,
ConfigItem configItem)
Deprecated.
try to get config value using config type and config item.
|
void |
set(ConfigType configType,
ConfigItem configItem,
Object value)
Deprecated.
init a config item with certain config type, and the value can be any type.
|
public boolean contains(ConfigType configType, ConfigItem configItem)
ConfigContainercontains in interface 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 in interface 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 in interface ConfigContainerconfigType - config types in the config container, different config type can hold the same config item keyconfigItem - config items in the config containerCopyright © 2024. All rights reserved.