com.google.gson.JsonDeserializer<Direction>
, Serializable
, Comparable<Direction>
public static enum Direction.Deserializer extends Enum<Direction.Deserializer> implements com.google.gson.JsonDeserializer<Direction>
Enum Constant | Description |
---|---|
INSTANCE |
The singleton instance of this class.
|
Modifier and Type | Method | Description |
---|---|---|
Direction |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
|
static Direction.Deserializer |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Direction.Deserializer[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction.Deserializer INSTANCE
public static Direction.Deserializer[] values()
for (Direction.Deserializer c : Direction.Deserializer.values()) System.out.println(c);
public static Direction.Deserializer valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Direction deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<Direction>
com.google.gson.JsonParseException