Class GroupAddressJsonSerializer
- java.lang.Object
-
- li.pitschmann.knx.core.plugin.api.gson.AbstractKnxAddressJsonSerializer<GroupAddress>
-
- li.pitschmann.knx.core.plugin.api.gson.GroupAddressJsonSerializer
-
- All Implemented Interfaces:
com.google.gson.JsonSerializer<GroupAddress>
public final class GroupAddressJsonSerializer extends AbstractKnxAddressJsonSerializer<GroupAddress>
Serializes theGroupAddressto a JSON format
-
-
Field Summary
Fields Modifier and Type Field Description static GroupAddressJsonSerializerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.gson.JsonElementcreateAddressJsonElement(GroupAddress address)Creates a JSON element for given address-
Methods inherited from class li.pitschmann.knx.core.plugin.api.gson.AbstractKnxAddressJsonSerializer
serialize
-
-
-
-
Field Detail
-
INSTANCE
public static final GroupAddressJsonSerializer INSTANCE
-
-
Method Detail
-
createAddressJsonElement
protected com.google.gson.JsonElement createAddressJsonElement(GroupAddress address)
Description copied from class:AbstractKnxAddressJsonSerializerCreates a JSON element for given address- Specified by:
createAddressJsonElementin classAbstractKnxAddressJsonSerializer<GroupAddress>- Parameters:
address- address to be converted to JSON element- Returns:
- an instance of
JsonElement
-
-