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