| Package | Description |
|---|---|
| io.helidon.config |
Provides interfaces and classes for loading and working with immutable, tree-structured
configuration data.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ConfigValue<T> |
Config.as(GenericType<T> genericType)
Typed value as a
ConfigValue for a generic type. |
<T> ConfigValue<T> |
Config.as(Class<T> type)
Typed value as a
ConfigValue. |
<T> ConfigValue<T> |
Config.as(Function<Config,T> mapper)
Typed value as a
ConfigValue created from factory method. |
<N> ConfigValue<N> |
ConfigValue.as(Function<T,N> mapper)
Convert this
ConfigValue to a different type using a mapper function. |
default ConfigValue<Boolean> |
Config.asBoolean()
Boolean typed value.
|
default ConfigValue<Double> |
Config.asDouble()
Double typed value.
|
default ConfigValue<Integer> |
Config.asInt()
Integer typed value.
|
<T> ConfigValue<List<T>> |
Config.asList(Class<T> type)
Returns list of specified type.
|
<T> ConfigValue<List<T>> |
Config.asList(Function<Config,T> mapper)
Returns this node as a list converting each list value using the provided mapper.
|
default ConfigValue<Long> |
Config.asLong()
Long typed value.
|
ConfigValue<Map<String,String>> |
Config.asMap()
Transform all leaf nodes (values) into Map instance.
|
default ConfigValue<Config> |
Config.asNode()
Returns existing current config node as a
Optional instance
or Optional.empty() in case of Config.Type.MISSING node. |
ConfigValue<List<Config>> |
Config.asNodeList()
Returns a list of child
Config nodes if the node is Config.Type.OBJECT. |
default ConfigValue<String> |
Config.asString()
String typed value.
|
static <T> ConfigValue<T> |
ConfigValues.empty()
Simple empty value that can be used e.g.
|
static <T> ConfigValue<T> |
ConfigValues.simpleValue(T value)
Simple value that can be used e.g.
|
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.