public class AttributesConvertibleValues extends Object implements ConvertibleValues<Object>
ConvertibleValues implementation that uses Attributes as
the backing data source.EMPTY| Constructor and Description |
|---|
AttributesConvertibleValues(Attributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
get(CharSequence name,
ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name.
|
Set<String> |
names() |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasMap, asMap, asProperties, contains, empty, forEach, getValueType, isEmpty, iterator, of, subMap, subMap, subMapget, get, getforEach, spliteratorpublic AttributesConvertibleValues(Attributes attributes)
attributes - The attributespublic Set<String> names()
names in interface ConvertibleValues<Object>public Collection<Object> values()
values in interface ConvertibleValues<Object>public <T> Optional<T> get(CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolverget in interface ValueResolver<CharSequence>T - The concrete typename - The nameconversionContext - The conversion context