@PublicEvolving public class Bool extends Object implements Token
Boolean in a object.
An object of type Bool contains the value in primitive type
as well as the type of the token this class represents.
In addition, this class provides two methods one to extract the value held by this wrapper object, and the second for extracting the type of the token.
BoolList,
ColumnName,
ColumnNameList,
DirectiveName,
Numeric,
NumericList,
Properties,
Ranges,
Expression,
Text,
TextList,
Identifier,
Serialized Form| Constructor and Description |
|---|
Bool(Boolean value)
Allocates a
Boolean object representing the
value argument. |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
toJson()
Returns the members of this
Bool object as a JsonElement. |
TokenType |
type()
Returns the type of this
Bool object as a TokenType
enum. |
Boolean |
value()
Returns the value of this
Boolean object as a boolean
primitive. |
public Bool(Boolean value)
Boolean object representing the
value argument.value - the value of the Boolean.Copyright © 2020 CDAP Licensed under the Apache License, Version 2.0.