Class ClassNameObjectTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Object>
-
- cn.boboweike.carrot.utils.mapper.gson.ClassNameObjectTypeAdapter
-
public class ClassNameObjectTypeAdapter extends com.google.gson.TypeAdapter<Object>
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.gson.TypeAdapterFactoryFACTORY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectread(com.google.gson.stream.JsonReader in)voidwrite(com.google.gson.stream.JsonWriter out, Object value)
-
-
-
Method Detail
-
read
public Object read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<Object>- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, Object value) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<Object>- Throws:
IOException
-
-