Enum Class OceanusFiscalYear
- All Implemented Interfaces:
Serializable,Comparable<OceanusFiscalYear>,Constable
Fiscal Year representation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OceanusFiscalYeardetermineFiscalYear(Locale pLocale) Determine Fiscal Year for locale.endOfMonth(OceanusDate pDate) Normalise date to end of FiscalMonth.endOfYear(OceanusDate pDate) Normalise date to end of FiscalYear.intObtain the day.Obtain the month.startOfMonth(OceanusDate pDate) Normalise date to start of FiscalMonth.static OceanusFiscalYearReturns the enum constant of this class with the specified name.static OceanusFiscalYear[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UK
Fiscal Year based on UK Model. -
MARCH
March based start of year. -
APRIL
April based start of year. -
JULY
July based start of year. -
OCTOBER
October based start of year. -
CALENDAR
Fiscal year based on the CalendarYear.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFirstDay
public int getFirstDay()Obtain the day.- Returns:
- the day
-
getFirstMonth
Obtain the month.- Returns:
- the month
-
determineFiscalYear
Determine Fiscal Year for locale.- Parameters:
pLocale- the locale- Returns:
- the fiscal year type
-
endOfYear
Normalise date to end of FiscalYear.- Parameters:
pDate- the date to normalise.- Returns:
- the normalised date
-
endOfMonth
Normalise date to end of FiscalMonth.- Parameters:
pDate- the date to normalise.- Returns:
- the normalised date
-
startOfMonth
Normalise date to start of FiscalMonth.- Parameters:
pDate- the date to normalise.- Returns:
- the normalised date
-