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