public static class JSONUtils.Primitive extends Object
Constructor and Description |
---|
Primitive(boolean item)
Create a JSON primitive with the specified boolean value.
|
Primitive(Enum<?> item)
Create a JSON primitive with the specified enum value
|
Primitive(long item)
Create a JSON primitive with the specified numeric value.
|
Primitive(String item)
Create a JSON primitive with the specified string value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
JSONUtils.Primitive |
inline()
Mark the specified item to be formatted in-line.
|
boolean |
isInline()
Indicate whether the item will be formatted in-line.
|
String |
toString() |
public Primitive(String item)
item
- item string valueNullPointerException
- if the parameter is nullpublic Primitive(long item)
item
- item numeric valuepublic Primitive(boolean item)
item
- the boolean valuepublic Primitive(Enum<?> item)
item
- item numeric valueNullPointerException
- if the parameter is nullpublic JSONUtils.Primitive inline()
public boolean isInline()
Copyright © 2016. All Rights Reserved.