Class CommentTypeAdapter
java.lang.Object
net.darkhax.pricklemc.common.api.config.comment.CommentTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<IComment>, com.google.gson.JsonSerializer<IComment>
public final class CommentTypeAdapter
extends Object
implements com.google.gson.JsonSerializer<IComment>, com.google.gson.JsonDeserializer<IComment>
A GSON type adapter that handles reading and writing comments through GSON. This will serialize the values from
IComment.getLines() and deserialize values to the basic Comment that only holds the data.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommentTypeAdapterThe single instance of this type adapter. -
Method Summary
-
Field Details
-
INSTANCE
The single instance of this type adapter.
-
-
Method Details
-
deserialize
-
serialize
-