ConfigValue
instances. See also ConfigFactory which has methods for parsing files
and certain in-memory data structures.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ConfigValue | Returns: a new valueobject to convert to ConfigValue object, String name of origin file or brief description of what the value is originDescription)Creates a |
| public static ConfigValue | Returns: a newConfigValuea plain Java value object)See the other overload |
| public static ConfigList | Returns: a newConfigList valuelist of plain Java values values, String description to use in originDescription)ConfigOrigin of created valuesSee the |
| public static ConfigList | Returns: a newConfigListlist of plain Java values values)See the other overload of |
| public static ConfigObject | Returns: a newConfigObject valuemap from keys to plain Java values values, String description to use in originDescription)ConfigOrigin of created valuesSee the |
| public static ConfigObject | Returns: a newConfigObjectmap from keys to plain Java values values)See the other overload |
| ConfigValueFactory | back to summary |
|---|---|
| private ConfigValueFactory() | |
| fromAnyRef | back to summary |
|---|---|
| public static ConfigValue fromAnyRef(Object object, String originDescription) Creates a
In a The originDescription will be used to set the origin() field on the ConfigValue. It should normally be the name of the file the values came from, or something short describing the value such as "default settings". The originDescription is prefixed to error messages so users can tell where problematic values are coming from. Supplying the result of ConfigValue.unwrapped() to this function is guaranteed to work and should give you back a ConfigValue that matches the one you unwrapped. The re-wrapped ConfigValue will lose some information that was present in the original such as its origin, but it will have matching values.
If you pass in a This function throws if you supply a value that cannot be converted to a ConfigValue, but supplying such a value is a bug in your program, so you should never handle the exception. Just fix your program (or report a bug against this library).
| |
| fromAnyRef | back to summary |
|---|---|
| public static ConfigValue fromAnyRef(Object object) See the other overload
| |
| fromIterable | back to summary |
|---|---|
| public static ConfigList fromIterable(Iterable<? extends Object> values, String originDescription) See the
| |
| fromIterable | back to summary |
|---|---|
| public static ConfigList fromIterable(Iterable<? extends Object> values) See the other overload of
| |
| fromMap | back to summary |
|---|---|
| public static ConfigObject fromMap(Map<String, ? extends Object> values, String originDescription) See the
If your
See also
| |
| fromMap | back to summary |
|---|---|
| public static ConfigObject fromMap(Map<String, ? extends Object> values) See the other overload
See also
| |