Package | Description |
---|---|
com.typesafe.config |
An API for loading and using configuration files, see the project site
for more information.
|
com.typesafe.config.impl |
Internal implementation details that can change ABI at any time.
|
com.typesafe.config.parser |
This package supplies a raw parser and syntax tree for individual HOCON and JSON
files.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigList
Subtype of
ConfigValue representing a list value, as in JSON's
[1,2,3] syntax. |
interface |
ConfigObject
Subtype of
ConfigValue representing an object (AKA dictionary or map)
value, as in JSON's curly brace { "a" : 42 } syntax. |
Modifier and Type | Method and Description |
---|---|
static ConfigValue |
ConfigValueFactory.fromAnyRef(Object object)
See the other overload
ConfigValueFactory.fromAnyRef(Object,String) for details,
this one just uses a default origin description. |
static ConfigValue |
ConfigValueFactory.fromAnyRef(Object object,
String originDescription)
Creates a
ConfigValue from a plain Java boxed value, which may be
a Boolean , Number , String ,
Map , Iterable , or null . |
ConfigValue |
ConfigObject.get(Object key)
Gets a
ConfigValue at the given key, or returns null if there is
no value. |
ConfigValue |
Config.getValue(String path)
Gets the value at the given path, unless the value is a
null value or missing, in which case it throws just like
the other getters.
|
ConfigValue |
ConfigValue.withFallback(ConfigMergeable other) |
ConfigValue |
ConfigValue.withOrigin(ConfigOrigin origin)
Returns a
ConfigValue based on this one, but with the given
origin. |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,ConfigValue>> |
Config.entrySet()
Returns the set of path-value pairs, excluding any null values, found by
recursing
the root object . |
Modifier and Type | Method and Description |
---|---|
ConfigObject |
ConfigObject.withValue(String key,
ConfigValue value)
Returns a
ConfigObject based on this one, but with the given key
set to the given value. |
Config |
Config.withValue(String path,
ConfigValue value)
Returns a
Config based on this one, but with the given path set
to the given value. |
Modifier and Type | Method and Description |
---|---|
static ConfigValue |
ConfigImpl.fromAnyRef(Object object,
String originDescription) |
Modifier and Type | Method and Description |
---|---|
ConfigDocument |
ConfigDocument.withValue(String path,
ConfigValue newValue)
Returns a new ConfigDocument that is a copy of the current
ConfigDocument, but with the desired value set at the
desired path.
|
Copyright © 2018 com.typesafe. All rights reserved.