Accounting calendars require setup before use, given how they are used. The following information is required:
There are approximately 7 x 2 x 12 x 4 x 12/13 x 2 = 8064 combinations.
| Modifier and Type | Field and Description |
|---|---|
| private AccountingYearDivision | division
How to divide an accounting year. |
| private Month | end
Which Gregorian/ISO end-of-month the year ends in/is nearest to. |
| private DayOfWeek | endsOn
The day of the week on which a given Accounting year ends. |
| private boolean | inLastWeek
Whether the calendar ends in the last week of a given Gregorian/ISO month, or nearest to the last day of the month (will sometimes be in the next month). |
| private int | leapWeekInMonth
The month which will have the leap-week added. |
| private int | yearOffset
The offset to apply to the year. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AccountingChronologyBuilder | Returns: this, for chaining, not null.Sets the proleptic accounting year to end in the matching Iso year. |
| public AccountingChronologyBuilder | Returns: this, for chaining, not null.Sets the proleptic accounting year to start in the matching Iso year. |
| public AccountingChronologyBuilder | |
| public AccountingChronologyBuilder | Returns: this, for chaining, not null.The Gregorian/ISO month-end a given Accounting calendar year ends in the last week of. end)Sets the Gregorian/ISO month-end in which a given Accounting calendar year ends. |
| public AccountingChronologyBuilder | Returns: this, for chaining, not null.The month in which the leap-week occurs. leapWeekInMonth)Sets the month in which the leap-week occurs. |
| public AccountingChronologyBuilder | Returns: this, for chaining, not null.The Gregorian/ISO month-end a given Accounting calendar year ends nearest to. end)Sets the Gregorian/ISO month-end which a given Accounting calendar year ends nearest to. |
| public AccountingChronology | Returns: the created chronology, not null.Completes this builder by creating the |
| public AccountingChronologyBuilder | Returns: this, for chaining, not null.How to divide a given calendar year. division)Sets how a given Accounting year will be divided. |
| division | back to summary |
|---|---|
| private AccountingYearDivision division How to divide an accounting year. | |
| end | back to summary |
|---|---|
| private Month end Which Gregorian/ISO end-of-month the year ends in/is nearest to. | |
| endsOn | back to summary |
|---|---|
| private DayOfWeek endsOn The day of the week on which a given Accounting year ends. | |
| inLastWeek | back to summary |
|---|---|
| private boolean inLastWeek Whether the calendar ends in the last week of a given Gregorian/ISO month, or nearest to the last day of the month (will sometimes be in the next month). | |
| leapWeekInMonth | back to summary |
|---|---|
| private int leapWeekInMonth The month which will have the leap-week added. | |
| yearOffset | back to summary |
|---|---|
| private int yearOffset The offset to apply to the year. | |
| AccountingChronologyBuilder | back to summary |
|---|---|
| public AccountingChronologyBuilder() Constructs a new instance of the builder. | |
| accountingYearEndsInIsoYear | back to summary |
|---|---|
| public AccountingChronologyBuilder accountingYearEndsInIsoYear() Sets the proleptic accounting year to end in the matching Iso year.
| |
| accountingYearStartsInIsoYear | back to summary |
|---|---|
| public AccountingChronologyBuilder accountingYearStartsInIsoYear() Sets the proleptic accounting year to start in the matching Iso year.
| |
| endsOn | back to summary |
|---|---|
| public AccountingChronologyBuilder endsOn(DayOfWeek endsOn) Sets the day-of-week on which a given Accounting calendar year ends.
| |
| inLastWeekOf | back to summary |
|---|---|
| public AccountingChronologyBuilder inLastWeekOf(Month end) Sets the Gregorian/ISO month-end in which a given Accounting calendar year ends. Calendars setup this way will always end in the last week of the given month. For example, for July, the month ends on any day from July 25th to July 31st.
| |
| leapWeekInMonth | back to summary |
|---|---|
| public AccountingChronologyBuilder leapWeekInMonth(int leapWeekInMonth) Sets the month in which the leap-week occurs.
| |
| nearestEndOf | back to summary |
|---|---|
| public AccountingChronologyBuilder nearestEndOf(Month end) Sets the Gregorian/ISO month-end which a given Accounting calendar year ends nearest to. Calendars setup this way will occasionally end in the start of the next month. For example, for July, the month ends on any day from July 28th to August 3rd.
| |
| toChronology | back to summary |
|---|---|
| public AccountingChronology toChronology() Completes this builder by creating the
| |
| withDivision | back to summary |
|---|---|
| public AccountingChronologyBuilder withDivision(AccountingYearDivision division) Sets how a given Accounting year will be divided.
| |