V
- The generic valuepublic interface OptionalMultiValues<V> extends OptionalValues<java.util.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 java.util.Optional<V> |
getFirst(java.lang.CharSequence name)
Retrieve a value if it is present.
|
static <T> OptionalMultiValues<T> |
of(java.util.Map<java.lang.CharSequence,java.util.List<T>> values)
Creates a new
OptionalValues for the given type and values. |
static final OptionalMultiValues EMPTY_VALUES
default java.util.Optional<V> getFirst(java.lang.CharSequence name)
name
- The name of the valueOptional
of the valuestatic <T> OptionalMultiValues<T> empty()
OptionalValues
.empty
in interface OptionalValues<java.util.List<V>>
T
- The generic typestatic <T> OptionalMultiValues<T> of(java.util.Map<java.lang.CharSequence,java.util.List<T>> values)
OptionalValues
for the given type and values.T
- The target generic typevalues
- A map of values