public static enum Student.StudentPriority extends Enum<Student.StudentPriority>
Enum Constant and Description |
---|
Dummy |
Freshmen |
Junior |
Normal |
Priority |
Senior |
Sophomore |
Modifier and Type | Method and Description |
---|---|
String |
code() |
Double |
getBoost() |
static Student.StudentPriority |
getPriority(String value) |
boolean |
isHigher(Student s) |
boolean |
isSame(Student s) |
boolean |
isSameOrHigher(Student s) |
static Student.StudentPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Student.StudentPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Student.StudentPriority Priority
public static final Student.StudentPriority Senior
public static final Student.StudentPriority Junior
public static final Student.StudentPriority Sophomore
public static final Student.StudentPriority Freshmen
public static final Student.StudentPriority Normal
public static final Student.StudentPriority Dummy
public static Student.StudentPriority[] values()
for (Student.StudentPriority c : Student.StudentPriority.values()) System.out.println(c);
public static Student.StudentPriority 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 isSameOrHigher(Student s)
public static Student.StudentPriority getPriority(String value)