com.google.gson.JsonSerializer<Direction>
, Serializable
, Comparable<Direction>
public static enum Direction.Serializer extends Enum<Direction.Serializer> implements com.google.gson.JsonSerializer<Direction>
Enum Constant | Description |
---|---|
INSTANCE |
The singleton instance of this class.
|
Modifier and Type | Method | Description |
---|---|---|
com.google.gson.JsonElement |
serialize(Direction src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
|
static Direction.Serializer |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Direction.Serializer[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction.Serializer INSTANCE
public static Direction.Serializer[] values()
for (Direction.Serializer c : Direction.Serializer.values()) System.out.println(c);
public static Direction.Serializer 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 null