-
- All Implemented Interfaces:
public class PBGson
Pre- Build Gson is an object holder for some gson objects which are often build.
-
-
Field Summary
Fields Modifier and Type Field Description private final static Gson
prettyPrint
private final static Gson
small
private final static Gson
smallNoNull
-
Method Summary
Modifier and Type Method Description static Gson
getPrettyPrint()
Returns a pre- build gson object with the settings: - Pretty printing - Disabled html escaping - Serializing nulls
static Gson
getSmall()
Returns a pre- build gson object with the settings: - Disabled html escaping - Serializing nulls
static Gson
getSmallNoNull()
Returns a pre- build gson object with the settings: - Disabled html escaping
static Gson
pp()
Short version of getPrettyPrint. static Gson
s()
Short version of getSmall. static Gson
snn()
Short version of getSmallNoNull. -
-
Method Detail
-
getPrettyPrint
static Gson getPrettyPrint()
Returns a pre- build gson object with the settings: - Pretty printing - Disabled html escaping - Serializing nulls
-
getSmall
static Gson getSmall()
Returns a pre- build gson object with the settings: - Disabled html escaping - Serializing nulls
-
getSmallNoNull
static Gson getSmallNoNull()
Returns a pre- build gson object with the settings: - Disabled html escaping
-
pp
static Gson pp()
Short version of getPrettyPrint.
-
s
static Gson s()
Short version of getSmall.
-
snn
static Gson snn()
Short version of getSmallNoNull.
-
-
-
-