Package com.amilesend.tmdb.client.parse
Class GsonFactory
java.lang.Object
com.amilesend.tmdb.client.parse.GsonFactory
Factory that vends new pre-configured
Gson instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic GsonFactoryGets the singletonGsonFactoryinstance.com.google.gson.GsonGets a newGsoninstance that is configured for use byConnection.com.google.gson.GsonGets a newGsoninstance that is configured for use byConnectionthat provides pretty-printed formatted JSON (i.e., useful for testing and/or debugging).
-
Method Details
-
getInstance
Gets the singletonGsonFactoryinstance.- Returns:
- the factory instance
-
newInstanceForConnection
public com.google.gson.Gson newInstanceForConnection()Gets a newGsoninstance that is configured for use byConnection.- Returns:
- the pre-configured Gson instance
-
newInstanceForPrettyPrinting
public com.google.gson.Gson newInstanceForPrettyPrinting()Gets a newGsoninstance that is configured for use byConnectionthat provides pretty-printed formatted JSON (i.e., useful for testing and/or debugging).- Returns:
- the pre-configured Gson instance
-