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