OpeningHours

Stay organized with collections Save and categorize content based on your preferences.
public abstract class OpeningHours extends Object
implements Parcelable

Represents information on when a Place will be open during the week.

Nested Class Summary

class OpeningHours.Builder Builder for OpeningHours

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

static OpeningHours.Builder
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<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 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<String> getWeekdayText ()

Returns a list of strings that represent opening and closing hours in human readable form. For example:

  • "Monday: 8:30 AM – 5:30 PM"
  • "Saturday: Closed"

This list should not be modified.