|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Month>
com.antelmann.calendar.Month
public enum Month
WeekDay,
TimeInterval.MONTH| Enum Constant Summary | |
|---|---|
APRIL
|
|
AUGUST
|
|
DECEMBER
|
|
FEBRUARY
|
|
JANUARY
|
|
JULY
|
|
JUNE
|
|
MARCH
|
|
MAY
|
|
NOVEMBER
|
|
OCTOBER
|
|
SEPTEMBER
|
|
| Method Summary | |
|---|---|
static Month |
fromDate(Date date)
|
static Month |
fromInt(int month)
accepts the constants used in Calendar |
static Month |
fromTime(long time)
|
String |
getName(Locale l)
|
int |
intValue()
corresponds to the constants used in Calendar |
String |
shortString()
|
String |
toString()
|
static Month |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Month[] |
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 Month JANUARY
public static final Month FEBRUARY
public static final Month MARCH
public static final Month APRIL
public static final Month MAY
public static final Month JUNE
public static final Month JULY
public static final Month AUGUST
public static final Month SEPTEMBER
public static final Month OCTOBER
public static final Month NOVEMBER
public static final Month DECEMBER
| Method Detail |
|---|
public static Month[] values()
for (Month c : Month.values()) System.out.println(c);
public static Month 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 int intValue()
Calendar
public static Month fromInt(int month)
throws IllegalArgumentException
Calendar
IllegalArgumentExceptionpublic static Month fromTime(long time)
public static Month fromDate(Date date)
public String shortString()
public String toString()
toString in class Enum<Month>public String getName(Locale l)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||