Class GsonFactory.Builder

  • Enclosing class:
    GsonFactory

    public static final class GsonFactory.Builder
    extends java.lang.Object
    Builder for GsonFactory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean readLeniency  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GsonFactory build()
      Builds GsonFactory instance.
      GsonFactory.Builder setReadLeniency​(boolean readLeniency)
      Set to true when you want to the JSON parser to be lenient to reading JSON value.
      • Methods inherited from class java.lang.Object

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

      • readLeniency

        private boolean readLeniency
    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • setReadLeniency

        public GsonFactory.Builder setReadLeniency​(boolean readLeniency)
        Set to true when you want to the JSON parser to be lenient to reading JSON value. By default, it is false.
      • build

        public GsonFactory build()
        Builds GsonFactory instance.