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