public static final class BusinessDay.Builder extends Object
app.pickmaven.businessdays.BusinessDay objects.| Constructor and Description |
|---|
Builder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static BusinessDay.Builder |
aBusinessDay() |
BusinessDay.Builder |
applyToYears(Integer... years)
Sets years to apply holidays for computing next business day.
|
BusinessDay |
build() |
BusinessDay.Builder |
computingChristmas()
Adds the Christmas as
app.pickmaven.businessdays.Holiday if is not already present in app.pickmaven.businessdays.Holidays. |
BusinessDay.Builder |
computingEaster()
Adds the Easter as
app.pickmaven.businessdays.Holiday if is not already present in app.pickmaven.businessdays.Holidays. |
BusinessDay.Builder |
computingEasterMonday()
Adds the Easter Monday as
app.pickmaven.businessdays.Holiday if is not already present in app.pickmaven.businessdays.Holidays. |
BusinessDay.Builder |
fromStartingDate(java.time.LocalDate startingDate)
Sets the starting day for computing the next business day.
|
BusinessDay.Builder |
givenHolidays(Holidays holidays)
Sets the
app.pickmaven.businessdays.Holidays object in the app.pickmaven.businessdays.BusinessDay object. |
BusinessDay.Builder |
holidayOnWeekDays(java.time.DayOfWeek... weekDays)
Sets weekdays as holiday.
|
BusinessDay.Builder |
holidayOnWeekDays(TemporalRange range,
java.time.DayOfWeek... weekDays)
Sets weekdays as holiday, applied to specific temporal range.
|
BusinessDay.Builder |
withBusinessSaturday(Integer... yearsOrMonths)
Sets saturday as business day for years or months passed as parameter; if no years or months are passed in it sets to true.
|
BusinessDay.Builder |
withBusinessSaturday(TemporalRange range)
Sets saturday as business day for the
app.pickmaven.businessdays.TemporalRange passed as parameter. |
BusinessDay.Builder |
withBusinessSunday(Integer... yearsOrMonths)
Sets sunday as business day for years or months passed as parameter; if no years or months are passed in it sets to true.
|
BusinessDay.Builder |
withBusinessSunday(TemporalRange range)
Sets sunday as business day for the
app.pickmaven.businessdays.TemporalRange passed as parameter. |
public Builder()
app.pickmaven.businessdays.Holidays object.public static BusinessDay.Builder aBusinessDay()
public BusinessDay.Builder givenHolidays(Holidays holidays)
app.pickmaven.businessdays.Holidays object in the app.pickmaven.businessdays.BusinessDay object.holidays - to assign to app.pickmaven.businessdays.BusinessDaypublic BusinessDay.Builder computingEaster()
app.pickmaven.businessdays.Holiday if is not already present in app.pickmaven.businessdays.Holidays.public BusinessDay.Builder computingEasterMonday()
app.pickmaven.businessdays.Holiday if is not already present in app.pickmaven.businessdays.Holidays.public BusinessDay.Builder computingChristmas()
app.pickmaven.businessdays.Holiday if is not already present in app.pickmaven.businessdays.Holidays.public BusinessDay.Builder withBusinessSaturday(Integer... yearsOrMonths)
yearsOrMonths - to apply business saturdaypublic BusinessDay.Builder withBusinessSaturday(TemporalRange range)
app.pickmaven.businessdays.TemporalRange passed as parameter.range - to apply business saturday; not nullpublic BusinessDay.Builder withBusinessSunday(Integer... yearsOrMonths)
yearsOrMonths - to apply business sundaypublic BusinessDay.Builder withBusinessSunday(TemporalRange range)
app.pickmaven.businessdays.TemporalRange passed as parameter.range, - to apply business sunday; not nullpublic BusinessDay.Builder holidayOnWeekDays(java.time.DayOfWeek... weekDays)
weekDays - DayOfWeek[] weekdays to be holidaypublic BusinessDay.Builder holidayOnWeekDays(TemporalRange range, java.time.DayOfWeek... weekDays)
range - app.pickmaven.businessdays.TemporalRange to apply weekdays as holidays, not nullweekDays - DayOfWeek[] weekdays to be holidaypublic BusinessDay.Builder fromStartingDate(java.time.LocalDate startingDate)
startingDate - for computing next business daypublic BusinessDay.Builder applyToYears(Integer... years)
years - to apply holidayspublic BusinessDay build()
app.pickmaven.businessdays.BusinessDay instanceCopyright © 2020. All rights reserved.