- java.lang.Object
-
- java.lang.Enum<AccountingYearDivision>
-
- org.threeten.extra.chrono.AccountingYearDivision
-
- All Implemented Interfaces:
Serializable
,Comparable<AccountingYearDivision>
public enum AccountingYearDivision extends Enum<AccountingYearDivision>
How an Accounting year is divided.An Accounting calendar system generally divides a year into smaller periods, similar in length to regular calendar months. The most common divisions either use 12 such 'months' (requiring one every quarter to be 5 weeks instead of 4), or use 13 of 4 weeks each (making one quarter have an extra month, or each quarter have partial months).
Implementation Requirements:
This is an immutable and thread-safe enum.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description QUARTERS_OF_PATTERN_4_4_5_WEEKS
The singleton instance for a year divided into 4 quarters, each having 3 months with lengths of 4, 4, and 5 weeks, respectively.QUARTERS_OF_PATTERN_4_5_4_WEEKS
The singleton instance for a year divided into 4 quarters, each having 3 months with lengths of 4, 5, and 4 weeks, respectively.QUARTERS_OF_PATTERN_5_4_4_WEEKS
The singleton instance for a year divided into 4 quarters, each having 3 months with lengths of 5, 4, and 4 weeks, respectively.THIRTEEN_EVEN_MONTHS_OF_4_WEEKS
The singleton instance for a year divided into 13 even months, each having 4 weeks.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccountingYearDivision
valueOf(String name)
Returns the enum constant of this type with the specified name.static AccountingYearDivision[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUARTERS_OF_PATTERN_4_4_5_WEEKS
public static final AccountingYearDivision QUARTERS_OF_PATTERN_4_4_5_WEEKS
The singleton instance for a year divided into 4 quarters, each having 3 months with lengths of 4, 4, and 5 weeks, respectively.
-
QUARTERS_OF_PATTERN_4_5_4_WEEKS
public static final AccountingYearDivision QUARTERS_OF_PATTERN_4_5_4_WEEKS
The singleton instance for a year divided into 4 quarters, each having 3 months with lengths of 4, 5, and 4 weeks, respectively.
-
QUARTERS_OF_PATTERN_5_4_4_WEEKS
public static final AccountingYearDivision QUARTERS_OF_PATTERN_5_4_4_WEEKS
The singleton instance for a year divided into 4 quarters, each having 3 months with lengths of 5, 4, and 4 weeks, respectively.
-
THIRTEEN_EVEN_MONTHS_OF_4_WEEKS
public static final AccountingYearDivision THIRTEEN_EVEN_MONTHS_OF_4_WEEKS
The singleton instance for a year divided into 13 even months, each having 4 weeks.
-
-
Method Detail
-
values
public static AccountingYearDivision[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AccountingYearDivision c : AccountingYearDivision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccountingYearDivision valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-