Class IntegerAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Integer>
-
- io.ultreia.java4all.util.json.adapters.IntegerAdapter
-
- All Implemented Interfaces:
JsonAdapter
@AutoService(JsonAdapter.class) public class IntegerAdapter extends com.google.gson.TypeAdapter<Integer> implements JsonAdapter
- Since:
- 1.1.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Constructor Summary
Constructors Constructor Description IntegerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerread(com.google.gson.stream.JsonReader in)Class<?>type()voidwrite(com.google.gson.stream.JsonWriter out, Integer value)
-
-
-
Method Detail
-
type
public Class<?> type()
- Specified by:
typein interfaceJsonAdapter
-
write
public void write(com.google.gson.stream.JsonWriter out, Integer value) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<Integer>- Throws:
IOException
-
read
public Integer read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<Integer>- Throws:
IOException
-
-