java.lang.Object
java.lang.Enum<OceanusFiscalYear>
io.github.tonywasher.joceanus.oceanus.date.OceanusFiscalYear
All Implemented Interfaces:
Serializable, Comparable<OceanusFiscalYear>, Constable

public enum OceanusFiscalYear extends Enum<OceanusFiscalYear>
Fiscal Year representation.
  • Enum Constant Details

  • Method Details

    • values

      public static OceanusFiscalYear[] 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

      public static OceanusFiscalYear valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFirstDay

      public int getFirstDay()
      Obtain the day.
      Returns:
      the day
    • getFirstMonth

      public Month getFirstMonth()
      Obtain the month.
      Returns:
      the month
    • determineFiscalYear

      public static OceanusFiscalYear determineFiscalYear(Locale pLocale)
      Determine Fiscal Year for locale.
      Parameters:
      pLocale - the locale
      Returns:
      the fiscal year type
    • endOfYear

      public OceanusDate endOfYear(OceanusDate pDate)
      Normalise date to end of FiscalYear.
      Parameters:
      pDate - the date to normalise.
      Returns:
      the normalised date
    • endOfMonth

      public OceanusDate endOfMonth(OceanusDate pDate)
      Normalise date to end of FiscalMonth.
      Parameters:
      pDate - the date to normalise.
      Returns:
      the normalised date
    • startOfMonth

      public OceanusDate startOfMonth(OceanusDate pDate)
      Normalise date to start of FiscalMonth.
      Parameters:
      pDate - the date to normalise.
      Returns:
      the normalised date