public enum SFSRoomRemoveMode extends java.lang.Enum<SFSRoomRemoveMode>
Enum Constant and Description |
---|
DEFAULT
The default mode works in two different ways depending on the type of Room:
Regular: the room is removed when the Room is empty and its creator is not connected anymore
Game: the room is removed when the Room is empty
|
NEVER_REMOVE
The Room is never removed (use with caution)
|
WHEN_EMPTY
The Room is auto-removed when the last user leaves it
|
WHEN_EMPTY_AND_CREATOR_IS_GONE
The Room is auto-removed when the Room is empty and its creator is not connected anymore
|
Modifier and Type | Method and Description |
---|---|
static SFSRoomRemoveMode |
fromString(java.lang.String id) |
static SFSRoomRemoveMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SFSRoomRemoveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SFSRoomRemoveMode DEFAULT
public static final SFSRoomRemoveMode WHEN_EMPTY
public static final SFSRoomRemoveMode WHEN_EMPTY_AND_CREATOR_IS_GONE
public static final SFSRoomRemoveMode NEVER_REMOVE
public static SFSRoomRemoveMode[] values()
for (SFSRoomRemoveMode c : SFSRoomRemoveMode.values()) System.out.println(c);
public static SFSRoomRemoveMode 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 SFSRoomRemoveMode fromString(java.lang.String id)