Interface Data
-
public interface DataData ofExecutionResult, can be of three basic kinds -NULL, list and simple value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classData.DataDeserializer
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<Data>asList()booleanisList()default booleanisNull()booleanisValue()java.lang.StringtextValue()
-
-
-
Field Detail
-
NULL
static final Data NULL
-
-
Method Detail
-
isList
boolean isList()
- Returns:
- true if this instance is of kind list, false otherwise
-
isValue
boolean isValue()
- Returns:
- true if this instance is of kind value, false otherwise
-
isNull
default boolean isNull()
- Returns:
- true if this instance is the same as
NULL, false otherwise
-
textValue
java.lang.String textValue()
- Returns:
- text data value, throws exception for data which can't be represented as text
-
asList
default java.util.List<Data> asList()
- Returns:
- this instance cast to List, may throw exception if this instance is not of kind list.
-
-