| 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 src.typeOfSrc - the type of src.context - the context.Copyright © 2017 BotMill. All rights reserved.