T
- The coercion type.public interface Resolver<T>
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.
|
T getValue()
boolean hasValue()
true
if a value is set, otherwise false
Resolver<T> withDefault(T value)
value
- The default fall-back value.ConfigKey getKey()
<N> Resolver<N> as(Class<N> clazz)
N
- The value type to coerce to.clazz
- The class to coerce to.<N> Resolver<N> as(Class<N> clazz, Converter<N> converter)
N
- The value type to coerce to.clazz
- The class to coerce to.converter
- The converter to support the coercion.Copyright © 2019 JBoss by Red Hat. All rights reserved.