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 Configuration
public <T> T get(String key, Class<T> type)
get
in interface Configuration
public <T> T get(String key, TypeLiteral<T> type)
PropertyConverter
instances provided by the current
ConfigurationContext
.get
in interface Configuration
T
- 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 Configuration
public Configuration with(ConfigOperator operator)
with
in interface Configuration
public <T> T query(ConfigQuery<T> query)
query
in interface Configuration
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.