|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TimeUnit>
net.sf.mpxj.TimeUnit
public enum TimeUnit
This class contains utility functions allowing time unit specifications to be parsed and formatted.
| Enum Constant Summary | |
|---|---|
DAYS
Constant representing Days. |
|
ELAPSED_DAYS
Constant representing Elapsed Days. |
|
ELAPSED_HOURS
Constant representing Elapsed Hours. |
|
ELAPSED_MINUTES
Constant representing Elapsed Minutes. |
|
ELAPSED_MONTHS
Constant representing Elapsed Months. |
|
ELAPSED_PERCENT
Constant representing Elapsed Percent. |
|
ELAPSED_WEEKS
Constant representing Elapsed Weeks. |
|
ELAPSED_YEARS
Constant representing Elapsed Years. |
|
HOURS
Constant representing Hours. |
|
MINUTES
Constant representing Minutes. |
|
MONTHS
Constant representing Months. |
|
PERCENT
Constant representing Percent. |
|
WEEKS
Constant representing Weeks. |
|
YEARS
Constant representing Years. |
|
| Method Summary | |
|---|---|
static TimeUnit |
getInstance(int type)
Retrieve an instance of the enum based on its int value. |
static TimeUnit |
getInstance(Number type)
Retrieve an instance of the enum based on its int value. |
String |
getName()
Retrieve the name associated with this enum. |
int |
getValue()
Accessor method used to retrieve the numeric representation of the enum. |
String |
toString()
|
static TimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TimeUnit MINUTES
public static final TimeUnit HOURS
public static final TimeUnit DAYS
public static final TimeUnit WEEKS
public static final TimeUnit MONTHS
public static final TimeUnit PERCENT
public static final TimeUnit YEARS
public static final TimeUnit ELAPSED_MINUTES
public static final TimeUnit ELAPSED_HOURS
public static final TimeUnit ELAPSED_DAYS
public static final TimeUnit ELAPSED_WEEKS
public static final TimeUnit ELAPSED_MONTHS
public static final TimeUnit ELAPSED_YEARS
public static final TimeUnit ELAPSED_PERCENT
| Method Detail |
|---|
public static TimeUnit[] values()
for (TimeUnit c : TimeUnit.values()) System.out.println(c);
public static TimeUnit valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static TimeUnit getInstance(int type)
type - int type
public static TimeUnit getInstance(Number type)
type - int type
public int getValue()
getValue in interface MpxjEnumpublic String getName()
public String toString()
toString in class Enum<TimeUnit>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||