Class GsonProvider

java.lang.Object
org.ammonium.common.util.gson.GsonProvider

public final class GsonProvider
extends java.lang.Object
Represents a class which holds Gson objects.
  • Method Summary

    Modifier and Type Method Description
    static com.google.gson.Gson normal()
    Represents a Gson object without pretty printing.
    static com.google.gson.Gson prettyPrinting()
    Represents a Gson object with pretty printing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • normal

      public static com.google.gson.Gson normal()
      Represents a Gson object without pretty printing.
      Returns:
      NORMAL
      See Also:
      NORMAL
    • prettyPrinting

      public static com.google.gson.Gson prettyPrinting()
      Represents a Gson object with pretty printing.
      Returns:
      PRETTY_PRINTING
      See Also:
      PRETTY_PRINTING