org.sape.carbon.core.util.calendar
Class MonthEnum
java.lang.Object
|
+--org.sape.carbon.core.util.enum.BaseEnum
|
+--org.sape.carbon.core.util.calendar.MonthEnum
- All Implemented Interfaces:
- Serializable
- public final class MonthEnum
- extends BaseEnum
- implements Serializable
A simple enumeration for the seven days of the week. The ordinal values
for each day are based off of the
Calendar
class.
Copyright 2002 Sapient
- Since:
- carbon 1.0
- Version:
- $Revision: 1.6 $($Author: dvoet $ / $Date: 2003/05/05 21:21:22 $)
- Author:
- Doug Voet, June 2002
- See Also:
- Serialized Form
Nested classes inherited from class org.sape.carbon.core.util.enum.BaseEnum |
|
Constructor Summary |
private |
MonthEnum(String name,
int ordinal)
Constructor for MonthEnum. |
JANUARY
public static final MonthEnum JANUARY
- See Also:
Calendar.JANUARY
FEBRUARY
public static final MonthEnum FEBRUARY
- See Also:
Calendar.FEBRUARY
MARCH
public static final MonthEnum MARCH
- See Also:
Calendar.MARCH
APRIL
public static final MonthEnum APRIL
- See Also:
Calendar.APRIL
MAY
public static final MonthEnum MAY
- See Also:
Calendar.MAY
JUNE
public static final MonthEnum JUNE
- See Also:
Calendar.JUNE
JULY
public static final MonthEnum JULY
- See Also:
Calendar.JULY
AUGUST
public static final MonthEnum AUGUST
- See Also:
Calendar.AUGUST
SEPTEMBER
public static final MonthEnum SEPTEMBER
- See Also:
Calendar.SEPTEMBER
OCTOBER
public static final MonthEnum OCTOBER
- See Also:
Calendar.OCTOBER
NOVEMBER
public static final MonthEnum NOVEMBER
- See Also:
Calendar.NOVEMBER
DECEMBER
public static final MonthEnum DECEMBER
- See Also:
Calendar.DECEMBER
MonthEnum
private MonthEnum(String name,
int ordinal)
- Constructor for MonthEnum.
- Parameters:
name
- the name of the monthordinal
- the numeric value representing the month
getByName
public static final MonthEnum getByName(String name)
throws MonthEnum.MonthEnumNotFoundException
- Strongly typed enum retriever
MonthEnum.MonthEnumNotFoundException
getByOrdinal
public static final MonthEnum getByOrdinal(int ordinal)
throws MonthEnum.MonthEnumNotFoundException
- Strongly typed enum retriever
MonthEnum.MonthEnumNotFoundException
readResolve
final Object readResolve()
throws ObjectStreamException
- Overrides part of serialization to return a reference to an existing
static Enumeration
ObjectStreamException
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.