Modifier and Type | Method and Description |
---|---|
static LobbyType |
fromString(java.lang.String s)
Retrieves a LobbySign value corresponding to the given string.
|
static LobbyType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LobbyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LobbyType STATUS
public static final LobbyType PLAYERS
public static LobbyType[] values()
for (LobbyType c : LobbyType.values()) System.out.println(c);
public static LobbyType 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 static LobbyType fromString(java.lang.String s)
s
- the string to matchjava.lang.IllegalArgumentException
- if the given string does not match a
lobby type