public final class FrozenConfiguration extends Object implements Configuration, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
get(String key) |
<T> T |
get(String key,
Class<T> type) |
<T> T |
get(String key,
TypeLiteral<T> type)
Accesses the current String value for the given key and tries to convert it
using the
PropertyConverter instances provided by the current
ConfigurationContext. |
Map<String,String> |
getProperties() |
int |
hashCode() |
static FrozenConfiguration |
of(Configuration config)
Creates a new FrozenConfiguration instance based on a Configuration given.
|
<T> T |
query(ConfigQuery<T> query) |
String |
toString() |
Configuration |
with(ConfigOperator operator) |
public static FrozenConfiguration of(Configuration config)
config - the configuration to be frozen, not null.public String get(String key)
get in interface Configurationpublic <T> T get(String key, Class<T> type)
get in interface Configurationpublic <T> T get(String key, TypeLiteral<T> type)
PropertyConverter instances provided by the current
ConfigurationContext.get in interface ConfigurationT - the value typekey - the property's absolute, or relative path, e.g. @code
a/b/c/d.myProperty}.type - The target type required, not null.public Map<String,String> getProperties()
getProperties in interface Configurationpublic Configuration with(ConfigOperator operator)
with in interface Configurationpublic <T> T query(ConfigQuery<T> query)
query in interface ConfigurationCopyright © 2014–2015 Apache Software Foundation. All rights reserved.