|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.AppointmentPriority
Enumeration Type for Appointment Priorities
Field Summary | |
private static AppointmentPriority[] |
ALL
Collection with all kinds of importance types |
static AppointmentPriority |
HIGH
importance: high |
private int |
importance
Importance |
static AppointmentPriority |
LOW
importance: low |
static AppointmentPriority |
NONE
importance: none |
static AppointmentPriority |
NORMAL
importance: normal |
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
type
The internal type |
Constructor Summary | |
private |
AppointmentPriority(java.lang.String type,
int importance)
Constructor for AppointmentImportance |
Method Summary | |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
Compares this type to the specified object. |
static AppointmentPriority |
parse(java.lang.String code)
Creates for the argument an object of type AppointmentImportance |
int |
toInt()
|
java.lang.String |
toString()
Returns the importance type |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final AppointmentPriority NONE
public static final AppointmentPriority LOW
public static final AppointmentPriority NORMAL
public static final AppointmentPriority HIGH
private java.lang.String type
private int importance
private static final AppointmentPriority[] ALL
Constructor Detail |
private AppointmentPriority(java.lang.String type, int importance)
type
- The importance type to initialize the Objectimportance
- ImportanceMethod Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object obj)
obj
- The object to compare this AppointmentImportance
object against.
true
if the internal types are equal;
false
otherwise.public static AppointmentPriority parse(java.lang.String code) throws java.lang.IllegalArgumentException
code
- String to parse
java.lang.IllegalArgumentException
- if the argument is not matchedpublic int toInt()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |