public class BooleanItem extends Object implements Item<Boolean>
Modifier and Type | Method and Description |
---|---|
Boolean |
get() |
Parameters |
getParams()
Get the
Parameters of this Item . |
String |
serialize()
Serialize.
|
StringBuilder |
serializeTo(StringBuilder sb)
Serialize to an existing
StringBuilder . |
static BooleanItem |
valueOf(boolean value)
Creates a
BooleanItem instance representing the specified
boolean value. |
BooleanItem |
withParams(Parameters params)
Given an existing
Item , return a new instance with the specified
Parameters . |
public static BooleanItem valueOf(boolean value)
BooleanItem
instance representing the specified
boolean
value.value
- a boolean
value.BooleanItem
representing value
.public Parameters getParams()
Parametrizable
Parameters
of this Item
.getParams
in interface Parametrizable<Boolean>
public BooleanItem withParams(Parameters params)
Parametrizable
Item
, return a new instance with the specified
Parameters
.withParams
in interface Item<Boolean>
withParams
in interface Parametrizable<Boolean>
params
- Parameters
to set (must be non-null)Parameters
.public StringBuilder serializeTo(StringBuilder sb)
Type
StringBuilder
.serializeTo
in interface Type<Boolean>
sb
- where to serialize toStringBuilder
so calls can be chained.Copyright © 2021 The Apache Software Foundation. All rights reserved.