@Immutable public final class ScalarValue extends VariableValue
Note that the constructor takes an arbitrary type as an argument. It is
the caller's responsibility to ensure that this value has a correct .toString() implementation.
BUNDLE| Constructor and Description |
|---|
ScalarValue(Object value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getScalarValue()
Get a simple string for this value
|
boolean |
isEmpty()
Tell whether this value is empty
|
getListValue, getMapValue, getTypepublic ScalarValue(Object value)
value - the valueNullPointerException - value is nullpublic String getScalarValue()
VariableValueOnly valid for string values
getScalarValue 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 VariableValue