Serializable Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. configs. Serializable
- com.
Implements
public abstract class Serializable
implements java.io.Serializable
Abstract class with the parser for the provisioning configurations.
Constructor Summary
Constructor | Description | |
---|---|---|
Serializable() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJson()
Serializer |
protected abstract com.google.gson.JsonElement | toJsonElement() |
java.lang.String |
toString()
Creates a pretty print JSON with the content of the child class and subclasses. |
Methods inherited from java.lang.Object
Constructor Details
Serializable
public Serializable()
Method Details
toJson
public String toJson()
Serializer
Creates a String
, which the content represents the information in the child class and its subclasses in a JSON format.
Returns:
String
with the JSON.toJsonElement
protected abstract JsonElement toJsonElement()
toString
public String toString()
Creates a pretty print JSON with the content of the child class and subclasses.
Overrides:
Serializable.toString()Returns:
String
with the pretty print JSON.Applies to
Azure SDK for Java