Constructor and Description |
---|
MissingValue(String name) |
Modifier and Type | Method and Description |
---|---|
ValueNode |
get(int index)
Get a value at the given position.
|
ValueNode |
get(String name)
Get a value that matches the given name.
|
String |
name()
Name of this value or
null . |
<T> T |
to(Class<T> type)
Convert this value to the given type.
|
List<String> |
toList()
Get list of values.
|
<T> List<T> |
toList(Class<T> type)
Get list of the given type.
|
Map<String,String> |
toMap()
Value as single-value map.
|
Map<String,List<String>> |
toMultimap()
Value as multi-value map.
|
Optional<String> |
toOptional()
Get a value or empty optional.
|
Set<String> |
toSet()
Get set of values.
|
<T> Set<T> |
toSet(Class<T> type)
Get set of the given type.
|
String |
toString() |
String |
value()
Get string value.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
iterator, resolve, resolve, resolve, resolve, size
forEach, spliterator
array, booleanValue, booleanValue, byteValue, byteValue, create, create, doubleValue, doubleValue, floatValue, floatValue, hash, intValue, intValue, isArray, isMissing, isObject, isSingle, longValue, longValue, missing, toEnum, toEnum, toOptional, value, value, value, valueOrNull
public MissingValue(String name)
public ValueNode get(@Nonnull String name)
ValueNode
public ValueNode get(@Nonnull int index)
ValueNode
@Nonnull public <T> T to(@Nonnull Class<T> type)
Value
@Nonnull public Map<String,String> toMap()
Value
public Map<String,List<String>> toMultimap()
Value
toMultimap
in interface Value
@Nonnull public List<String> toList()
Value
@Nonnull public Optional<String> toOptional()
Value
toOptional
in interface Value
@Nonnull public <T> List<T> toList(@Nonnull Class<T> type)
Value
@Nonnull public Set<String> toSet()
Value
@Nonnull public <T> Set<T> toSet(@Nonnull Class<T> type)
Value
Copyright © 2020. All rights reserved.