| Constructor and Description |
|---|
DefaultConfig(SerializerCollection collection,
javax.validation.ValidatorFactory validatorFactory,
File root,
Map<String,Object> data) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
asObject(String path,
Class<T> type)
Resolve values as the given path as an object.
|
<T> Value<T> |
get(String path,
Class<T> type)
Resolve configuration values as an object.
|
Collection<String> |
keys(String path)
Get the direct subkeys of the given path.
|
public DefaultConfig(SerializerCollection collection, javax.validation.ValidatorFactory validatorFactory, File root, Map<String,Object> data)
public <T> T asObject(String path, Class<T> type)
ConfigConfig.get(String, Class) and then Value#getOrDefault()
with the value null.public Collection<String> keys(String path)
ConfigCopyright © 2016. All rights reserved.