public class Config extends Object
| Constructor and Description |
|---|
Config() |
Config(Map<String,Object> properties) |
Config(String configPath) |
Config(String configPath,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
Config |
clone() |
<T> T |
get(String property) |
Map<String,Object> |
getMapConf() |
<T> T |
getOrDefault(String property,
T defaultValue) |
Properties |
getProperties() |
Config |
put(String property,
Object value) |
public Config()
public Config(String configPath) throws IOException
IOExceptionpublic Config(String configPath, Map<String,Object> properties) throws IOException
IOExceptionpublic <T> T get(String property)
public <T> T getOrDefault(String property, T defaultValue)
public Properties getProperties()
Copyright © 2017–2018. All rights reserved.