T
- the typepublic class OptionalValuesMap<T> extends Object implements OptionalValues<T>
OptionalValues
.Modifier and Type | Field and Description |
---|---|
protected ValueResolver |
resolver |
protected Map<CharSequence,?> |
values |
EMPTY_VALUES
Modifier | Constructor and Description |
---|---|
protected |
OptionalValuesMap(Class<?> type,
Map<CharSequence,?> values) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<T> |
get(CharSequence name)
Retrieve a value if it is present.
|
int |
hashCode() |
Iterator<CharSequence> |
iterator() |
Collection<T> |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
empty, forEach, isEmpty, of
forEach, spliterator
protected final ValueResolver resolver
protected final Map<CharSequence,?> values
protected OptionalValuesMap(Class<?> type, Map<CharSequence,?> values)
type
- The typevalues
- The valuespublic Optional<T> get(CharSequence name)
OptionalValues
get
in interface OptionalValues<T>
name
- The name of the valueOptional
of the valuepublic Collection<T> values()
values
in interface OptionalValues<T>
public Iterator<CharSequence> iterator()
iterator
in interface Iterable<CharSequence>