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, wait
asMap, asMap, asProperties, contains, empty, forEach, getValueType, isEmpty, iterator, of, subMap, subMap, subMap
get, get, get
forEach, spliterator
public 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)
ValueResolver
get
in interface ValueResolver<CharSequence>
T
- The concrete typename
- The nameconversionContext
- The conversion context