public static class JSONUtils.Primitive extends Object
| Constructor and Description |
|---|
JSONUtils.Primitive(boolean item)
Create a JSON primitive with the specified boolean value.
|
JSONUtils.Primitive(Enum<?> item)
Create a JSON primitive with the specified enum value
|
JSONUtils.Primitive(long item)
Create a JSON primitive with the specified numeric value.
|
JSONUtils.Primitive(String item)
Create a JSON primitive with the specified string value.
|
public JSONUtils.Primitive(String item)
item - item string valueNullPointerException - if the parameter is nullpublic JSONUtils.Primitive(long item)
item - item numeric valuepublic JSONUtils.Primitive(boolean item)
item - the boolean valuepublic JSONUtils.Primitive(Enum<?> item)
item - item numeric valueNullPointerException - if the parameter is nullpublic JSONUtils.Primitive inline()
public boolean isInline()
Copyright © 2014. All Rights Reserved.