public class TokenItem 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 TokenItem |
valueOf(String value)
Creates a
TokenItem instance representing the specified
String value. |
TokenItem |
withParams(Parameters params)
Given an existing
Item , return a new instance with the specified
Parameters . |
public static TokenItem valueOf(String value)
TokenItem
instance representing the specified
String
value.value
- a String
value.TokenItem
representing value
.public TokenItem 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.