| Constructor and Description |
|---|
EnumLowercaseSerializer() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
serialize(Enum<?> src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
Serializes an Enum as its lowercase name.
|
String |
toString() |
public com.google.gson.JsonElement serialize(Enum<?> src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<Enum<?>>src - the srctypeOfSrc - the type of srccontext - the contextCopyright © 2017 BotMill. All rights reserved.