Constructor and Description |
---|
Builder(ConfigView view,
ConfigKey key) |
Modifier and Type | Method and Description |
---|---|
<N> Resolver<N> |
as(Class<N> clazz)
Retrieve a resolver capable of coercing to another simple type.
|
<N> Resolver<N> |
as(Class<N> clazz,
Converter<N> converter)
Retrieve a resolver capable of coering to another type.
|
ConfigKey |
getKey()
Retrieve the key of the configuration item.
|
T |
getValue()
Retrieve the coerced value.
|
boolean |
hasValue()
Determine if there is any value set.
|
Resolver<T> |
withDefault(T value)
Provide a default value to be provided in the case no value is currently bound.
|
public Builder(ConfigView view, ConfigKey key)
public <N> Resolver<N> as(Class<N> clazz)
Resolver
public <N> Resolver<N> as(Class<N> clazz, Converter<N> converter)
Resolver
public ConfigKey getKey()
Resolver
public T getValue()
Resolver
public boolean hasValue()
Resolver
Copyright © 2018 JBoss by Red Hat. All rights reserved.