Class Gson2Config

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.google.gson.Gson gson  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Gson2Config createCopy()
      Returns a copy of this configuration object.
      com.google.gson.Gson getGson()
      Returns the Gson object used for json conversion.
      Gson2Config setGson​(com.google.gson.Gson gson)
      Set the Gson to use for json conversion.
      • Methods inherited from class java.lang.Object

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

      • gson

        private com.google.gson.Gson gson
    • Constructor Detail

      • Gson2Config

        public Gson2Config()
      • Gson2Config

        private Gson2Config​(Gson2Config other)
    • Method Detail

      • setGson

        public Gson2Config setGson​(com.google.gson.Gson gson)
        Set the Gson to use for json conversion.
        Parameters:
        gson - the mapper to use
        Returns:
        this
      • getGson

        public com.google.gson.Gson getGson()
        Returns the Gson object used for json conversion.
        Returns:
        the Gson object used for json conversion.
      • createCopy

        public Gson2Config createCopy()
        Description copied from interface: JdbiConfig
        Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.
        Specified by:
        createCopy in interface JdbiConfig<Gson2Config>
        Returns:
        a copy of this configuration object.