public final class AccountingChronologyBuilder
extends java.lang.Object
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 = 4032 combinations.
| Constructor | Description |
|---|---|
AccountingChronologyBuilder() |
Constructs a new instance of the builder.
|
| Modifier and Type | Method | Description |
|---|---|---|
AccountingChronologyBuilder |
endsOn(java.time.DayOfWeek endsOn) |
Sets the day-of-week on which a given Accounting calendar year ends.
|
AccountingChronologyBuilder |
inLastWeekOf(java.time.Month end) |
Sets the Gregorian/ISO month-end in which a given Accounting calendar year ends.
|
AccountingChronologyBuilder |
leapWeekInMonth(int leapWeekInMonth) |
Sets the month in which the leap-week occurs.
|
AccountingChronologyBuilder |
nearestEndOf(java.time.Month end) |
Sets the Gregorian/ISO month-end which a given Accounting calendar year ends nearest to.
|
AccountingChronology |
toChronology() |
Completes this builder by creating the
AccountingChronology. |
AccountingChronologyBuilder |
withDivision(AccountingYearDivision division) |
Sets how a given Accounting year will be divided.
|
public AccountingChronologyBuilder()
public AccountingChronologyBuilder endsOn(java.time.DayOfWeek endsOn)
endsOn - The day-of-week on which a given Accounting calendar year ends.public AccountingChronologyBuilder nearestEndOf(java.time.Month end)
end - The Gregorian/ISO month-end a given Accounting calendar year ends nearest to.public AccountingChronologyBuilder inLastWeekOf(java.time.Month end)
end - The Gregorian/ISO month-end a given Accounting calendar year ends in the last week of.public AccountingChronologyBuilder withDivision(AccountingYearDivision division)
division - How to divide a given calendar year.public AccountingChronologyBuilder leapWeekInMonth(int leapWeekInMonth)
leapWeekInMonth - The month in which the leap-week occurs.public AccountingChronology toChronology()
AccountingChronology.java.time.DateTimeException - if the chronology cannot be built.Copyright © 2010–2018 ThreeTen.org. All rights reserved.