Class DataPointTypeJsonSerializer
- java.lang.Object
-
- li.pitschmann.knx.core.plugin.api.gson.DataPointTypeJsonSerializer
-
- All Implemented Interfaces:
com.google.gson.JsonSerializer<DataPointType<?>>
public final class DataPointTypeJsonSerializer extends Object implements com.google.gson.JsonSerializer<DataPointType<?>>
Serializes theDataPointTypeto a JSON format using Gson
-
-
Field Summary
Fields Modifier and Type Field Description static DataPointTypeJsonSerializerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonElementserialize(DataPointType<?> dataPointType, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
-
-
Field Detail
-
INSTANCE
public static final DataPointTypeJsonSerializer INSTANCE
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(DataPointType<?> dataPointType, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
- Specified by:
serializein interfacecom.google.gson.JsonSerializer<DataPointType<?>>
-
-