public interface TemplateBooleanModel extends TemplateModel
true
or false
.
Objects of this type should be immutable, that is, calling getAsBoolean()
should always return the same
value as for the first time.
Modifier and Type | Field and Description |
---|---|
static TemplateBooleanModel |
FALSE
A singleton object to represent boolean false
|
static TemplateBooleanModel |
TRUE
A singleton object to represent boolean true
|
NOTHING
Modifier and Type | Method and Description |
---|---|
boolean |
getAsBoolean() |
static final TemplateBooleanModel FALSE
static final TemplateBooleanModel TRUE
boolean getAsBoolean() throws TemplateModelException
TemplateModelException