V - The generic valuepublic interface OptionalMultiValues<V> extends OptionalValues<List<V>>
| Modifier and Type | Field and Description |
|---|---|
static OptionalMultiValues |
EMPTY_VALUES
Constant for empty values.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> OptionalMultiValues<T> |
empty()
An empty
OptionalValues. |
default Optional<V> |
getFirst(CharSequence name)
Retrieve a value if it is present.
|
static <T> OptionalMultiValues<T> |
of(Map<CharSequence,List<T>> values)
Creates a new
OptionalValues for the given type and values. |
forEach, get, isEmpty, of, valuesforEach, iterator, spliteratorstatic final OptionalMultiValues EMPTY_VALUES
default Optional<V> getFirst(CharSequence name)
name - The name of the valueOptional of the valuestatic <T> OptionalMultiValues<T> empty()
OptionalValues.empty in interface OptionalValues<List<V>>T - The generic typestatic <T> OptionalMultiValues<T> of(Map<CharSequence,List<T>> values)
OptionalValues for the given type and values.T - The target generic typevalues - A map of values