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.
|
Map<String,List<String>> |
toMultimap()
Value as multi-value map.
|
Set<String> |
toSet()
Get set of values.
|
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, toList, toMap, toOptional, toOptional, toSet, 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
public Map<String,List<String>> toMultimap()
Value
toMultimap
in interface Value
@Nonnull public List<String> toList()
Value
@Nonnull public Set<String> toSet()
Value
Copyright © 2020. All rights reserved.