Package 

Class PBGson

  • All Implemented Interfaces:

    
    public class PBGson
    
                        

    Pre- Build Gson is an object holder for some gson objects which are often build.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final static Gson prettyPrint
      private final static Gson small
      private final static Gson smallNoNull
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.