public enum RoomAllocPolicy extends Enum<RoomAllocPolicy>
| Enum Constant and Description |
|---|
SameCourse |
SameDepart |
SameTask |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
boolean |
isSameCourse() |
boolean |
isSameDepart() |
boolean |
isSameTask() |
void |
setSameCourse(boolean sameCourse) |
void |
setSameDepart(boolean sameDepart) |
void |
setSameTask(boolean sameTask) |
static RoomAllocPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RoomAllocPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RoomAllocPolicy SameTask
public static final RoomAllocPolicy SameCourse
public static final RoomAllocPolicy SameDepart
public static RoomAllocPolicy[] values()
for (RoomAllocPolicy c : RoomAllocPolicy.values()) System.out.println(c);
public static RoomAllocPolicy 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 boolean isSameTask()
public void setSameTask(boolean sameTask)
public boolean isSameCourse()
public void setSameCourse(boolean sameCourse)
public boolean isSameDepart()
public void setSameDepart(boolean sameDepart)
public String getName()
Copyright © 2005–2018 The OpenURP Software. All rights reserved.