public static enum Room.RoomType extends java.lang.Enum<Room.RoomType>
Enum Constant and Description |
---|
direct
1-to-1 room between two people
|
group
Group room among multiple people
|
Modifier and Type | Method and Description |
---|---|
static Room.RoomType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Room.RoomType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Room.RoomType group
public static final Room.RoomType direct
public static Room.RoomType[] values()
for (Room.RoomType c : Room.RoomType.values()) System.out.println(c);
public static Room.RoomType 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 null