- All Implemented Interfaces:
com.google.gson.JsonSerializer<Boolean>
- Enclosing class:
- MessageComponent
public static class MessageComponent.BooleanSerializer
extends Object
implements com.google.gson.JsonSerializer<Boolean>
-
Constructor Summary
Constructors
-
Method Summary
@Nullable com.google.gson.JsonElement
serialize(@Nullable Boolean src,
@Nullable Type typeOfSrc,
@Nullable com.google.gson.JsonSerializationContext context)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BooleanSerializer
public BooleanSerializer()
-
Method Details
-
serialize
public @Nullable com.google.gson.JsonElement serialize
(@Nullable Boolean src,
@Nullable Type typeOfSrc,
@Nullable com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interface com.google.gson.JsonSerializer<Boolean>