@Immutable public final class MapValue extends VariableValue
Note that some methods allow to pass values of arbitrary type. It is the
caller's responsibility to ensure that these values have a correct .toString() implementation.
While there is one public constructor, it is deprecated. Use a
MapValue.Builder instead (see newBuilder()).
| Modifier and Type | Class and Description |
|---|---|
static class |
MapValue.Builder
Builder class for a
MapValue |
BUNDLE| Constructor and Description |
|---|
MapValue(Map<String,String> map)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getMapValue()
Get a map for this value
|
boolean |
isEmpty()
Tell whether this value is empty
|
static MapValue.Builder |
newBuilder()
Create a new builder for this class
|
getListValue, getScalarValue, getType@Deprecated public MapValue(Map<String,String> map)
map - the underlying map valuesNullPointerException - map is null, or one of its keys or values
are nullpublic static MapValue.Builder newBuilder()
MapValue.Builderpublic Map<String,String> getMapValue()
VariableValueOnly valid for map values
getMapValue in class VariableValuepublic boolean isEmpty()
VariableValueFor strings, this tells whether the string itself is empty. For lists and maps, this tells whether the list or map have no elements/entries.
isEmpty in class VariableValueCopyright © 2013. All Rights Reserved.