public enum Source extends java.lang.Enum<Source> implements JsonSerializable
| Enum Constant and Description |
|---|
CLIENT
A Client source (e.g.
|
SERVER
A Server source (e.g.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
asJson()
Returns the object that should be an equivalent representation of itself in json.
|
static Source |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Source[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Source CLIENT
public static final Source SERVER
public static Source[] values()
for (Source c : Source.values()) System.out.println(c);
public static Source valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Object asJson()
JsonSerializableasJson in interface JsonSerializable