Class MoshiConfig
java.lang.Object
org.jdbi.v3.moshi.MoshiConfig
-
Constructor Details
-
MoshiConfig
public MoshiConfig()
-
-
Method Details
-
setMoshi
Set theMoshi
to use for json conversion.- Parameters:
moshi
- the mapper to use- Returns:
- this
-
getMoshi
public com.squareup.moshi.Moshi getMoshi()Returns theMoshi
to use for json conversion.- Returns:
- the
Moshi
to use for json conversion.
-
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 interfaceJdbiConfig<MoshiConfig>
- Returns:
- a copy of this configuration object.
-