OpeningHours.Builder

public static abstract class OpeningHours.Builder extends Object

Builder for OpeningHours.

All values are optional. If they are not specified, the resulting OpeningHours object will use empty Lists.

Public Constructor Summary

Public Method Summary

OpeningHours
build()
Builds the OpeningHours.
abstract OpeningHours.Builder
setPeriods(List<Period> periods)
abstract OpeningHours.Builder
setWeekdayText(List<String> weekdayText)

Inherited Method Summary

Public Constructors

public OpeningHours.Builder ()

Public Methods

public OpeningHours build ()

Builds the OpeningHours.

Mutable members (e.g List) will be converted to immutable versions.

Throws
IllegalStateException If weekdayText contains null or empty values.

public abstract OpeningHours.Builder setPeriods (List<Period> periods)

Parameters
periods

public abstract OpeningHours.Builder setWeekdayText (List<String> weekdayText)

Parameters
weekdayText

Enviar comentários sobre…