Represents information on when a Place
will be open during the week.
Nested Class Summary
class | OpeningHours.Builder | Builder for OpeningHours . |
|
enum | OpeningHours.HoursType | Identifies the type of secondary opening hours. |
Inherited Constant Summary
Public Constructor Summary
Public Method Summary
static OpeningHours.Builder |
builder()
Returns a
OpeningHours.Builder . |
abstract OpeningHours.HoursType |
getHoursType()
Returns the
OpeningHours.HoursType of the opening hours. |
abstract List<Period> |
getPeriods()
Returns a list of
Period objects that provide more detailed information that is
equivalent to the data provided by getWeekdayText() . |
abstract List<SpecialDay> |
getSpecialDays()
Returns a list of up to seven
SpecialDay entries, corresponding to the next seven days. |
abstract List<String> |
getWeekdayText()
Returns a list of strings that represent opening and closing hours in human readable form.
|
Inherited Method Summary
Public Constructors
public OpeningHours ()
Public Methods
public static OpeningHours.Builder builder ()
Returns a OpeningHours.Builder
.
Any values not explicitly set, default to an empty List.
public abstract OpeningHours.HoursType getHoursType ()
Returns the OpeningHours.HoursType
of the opening hours.
Will return non-null values only in Place.getSecondaryOpeningHours()
contexts.
public abstract List<Period> getPeriods ()
Returns a list of Period
objects that provide more detailed information that is
equivalent to the data provided by getWeekdayText()
.
This list should not be modified.
public abstract List<SpecialDay> getSpecialDays ()
Returns a list of up to seven SpecialDay
entries, corresponding to the next seven days.
Entries will only be present for Place.getCurrentOpeningHours()
& Place.getSecondaryOpeningHours()
.