Class GsonFactory


  • public class GsonFactory
    extends java.lang.Object
    The factory class GsonFactory for creating Gson objects
    • Constructor Summary

      Constructors 
      Constructor Description
      GsonFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.gson.Gson newGson()
      Factory method for create a new Gson
      static com.google.gson.Gson newGson​(com.google.gson.ExclusionStrategy exclusionStrategy, java.lang.String pattern)
      Factory method for create a new Gson
      • Methods inherited from class java.lang.Object

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

      • GsonFactory

        public GsonFactory()
    • Method Detail

      • newGson

        public static com.google.gson.Gson newGson()
        Factory method for create a new Gson
        Returns:
        the new Gson object
      • newGson

        public static com.google.gson.Gson newGson​(com.google.gson.ExclusionStrategy exclusionStrategy,
                                                   java.lang.String pattern)
        Factory method for create a new Gson
        Parameters:
        exclusionStrategy - the exclusion strategy
        pattern - the date pattern
        Returns:
        the new Gson object