| Modifier and Type | Field and Description |
|---|---|
static SegmentType |
SEGMENT_TYPE |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(StructuredData.Visitor<R,P> visitor,
P parameter) |
boolean |
bool() |
boolean |
equals(Object o) |
double |
floatingPoint() |
static StructuredData.Builder |
get() |
StructuredData.Type |
getType() |
Serializable |
getValue()
Returns the value without much type information.
|
int |
hashCode() |
long |
integral() |
boolean |
isUndefined() |
List<StructuredData> |
list() |
Map<String,StructuredData> |
map() |
String |
string() |
String |
toJSON() |
String |
toString() |
StructuredData.Updater |
update()
This instance WILL NOT be modified, the updates will be present in the newly constructed instance.
|
void |
writeJSON(Appendable wrt) |
public static final SegmentType SEGMENT_TYPE
public static StructuredData.Builder get()
public Serializable getValue()
accept(Visitor, Object) method.public boolean isUndefined()
public <R,P> R accept(StructuredData.Visitor<R,P> visitor, P parameter)
public boolean bool()
NullPointerException - if the value is undefinedClassCastException - if the value is not a booleanpublic long integral()
NullPointerException - if the value is undefinedClassCastException - if the value is not integralpublic double floatingPoint()
NullPointerException - if the value is undefinedClassCastException - if the value is not a floating point numberpublic String string()
NullPointerException - if the value is undefinedClassCastException - if the value is not a stringpublic List<StructuredData> list()
NullPointerException - if the value is undefinedClassCastException - if the value is not a listpublic Map<String,StructuredData> map()
NullPointerException - if the value is undefinedClassCastException - if the value is not a mappublic StructuredData.Type getType()
public StructuredData.Updater update()
public String toJSON()
public void writeJSON(Appendable wrt) throws IOException
IOExceptionCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.