Builder

public final class Builder

Builder for OpenHours.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public final OpenHours build()

Builds an OpenHours instance.

Link copied to clipboard
public final OpenHours.Builder days(List<Integer> days)

Sets the days of the week that the open hour settings will be applied to. Sunday corresponds to 0 and Saturday corresponds to 6.

Link copied to clipboard
public final OpenHours.Builder end(String end)

Sets the end time in 24-hour time format. Leading 0's are left off.

Link copied to clipboard
public final OpenHours.Builder exdates(List<String> exdates)

Sets the list of dates that will be excluded from the open hours. Dates should be formatted as YYYY-MM-DD.

Link copied to clipboard
public final OpenHours.Builder start(String start)

Sets the start time in 24-hour time format. Leading 0's are left off.

Link copied to clipboard
public final OpenHours.Builder timezone(String timezone)

Sets the IANA time zone database formatted string (e.g. America/New_York).