Package com.atlassian.bamboo.jsonator
Class DefaultJsonator
- java.lang.Object
-
- com.atlassian.bamboo.jsonator.DefaultJsonator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.jsonator.Jsonator
Jsonator.EnumConversionMode
-
-
Constructor Summary
Constructors Constructor Description DefaultJsonator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.base.Function<Object,com.google.gson.JsonElement>
convert()
com.google.gson.JsonElement
convert(Object object)
Creates aJsonElement
representation of a given object.com.google.gson.JsonElement
convert(Object object, Jsonator.EnumConversionMode enumConversionMode)
Creates aJsonElement
representation of a given object
-
-
-
Method Detail
-
convert
public com.google.gson.JsonElement convert(Object object)
Description copied from interface:Jsonator
Creates aJsonElement
representation of a given object. Enums are converted to their names.
-
convert
public com.google.common.base.Function<Object,com.google.gson.JsonElement> convert()
-
convert
public com.google.gson.JsonElement convert(Object object, Jsonator.EnumConversionMode enumConversionMode)
Description copied from interface:Jsonator
Creates aJsonElement
representation of a given object
-
-