Class GsonFactoryBase<T extends Connection>
java.lang.Object
com.amilesend.client.parse.GsonFactoryBase<T>
- Type Parameters:
- T- The connection type that this factory is for
Factory that vends new pre-configured 
Gson instances.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidClears cached instances for the given connection.voidclearAll()Clears all cached instances.com.google.gson.GsongetInstance(T connection) Creates the configuredGsoninstance.com.google.gson.GsongetInstanceForPrettyPrinting(T connection) Gets the configuredGsoninstance that provides pretty-printed formatted JSON (i.e., useful for testing and/or debugging).
- 
Constructor Details- 
GsonFactoryBasepublic GsonFactoryBase()
 
- 
- 
Method Details- 
getInstanceCreates the configuredGsoninstance.- Parameters:
- connection- the connection
- Returns:
- the Gson instance
 
- 
getInstanceForPrettyPrintingGets the configuredGsoninstance that provides pretty-printed formatted JSON (i.e., useful for testing and/or debugging).- Parameters:
- connection- the connection
- Returns:
- the pre-configured Gson instance
 
- 
clearAllpublic void clearAll()Clears all cached instances.
- 
clearClears cached instances for the given connection.- Parameters:
- connection- the connection
 
 
-