目录

OpeningHours

Class Info

public class OpeningHours

Describes weekly opening hours of a place.

Public Constructor Summary

Constructor Name

OpeningHours()

Default constructor.

Public Method Summary

Qualifier and Type

Method Name and Description

List<Period>

getPeriods()

Obtains opening hours of a place.

String[]

getTexts()

Obtains the description of weekly opening hours of a place.

void

setPeriods(List<Period> periods)

Sets opening hours of a place.

void

setTexts(String[] texts)

Sets the description of weekly opening hours of a place.

Public Methods

[h2]getPeriods

Method

public List<Period> getPeriods()

Obtains opening hours of a place.

Returns

Type

Description

List<Period>

Opening hours of a place.

[h2]getTexts

Method

public String[] getTexts()

Obtains the description of weekly opening hours of a place.

Returns

Type

Description

String[]

Description of weekly opening hours of a place.

[h2]setPeriods

Method

public void setPeriods(List<Period> periods)

Sets opening hours of a place.

Parameters

Name

Description

periods

Opening hours of a place.

[h2]setTexts

Method

public void setTexts(String[] texts)

Sets the description of weekly opening hours of a place.

Parameters

Name

Description

texts

Description of weekly opening hours of a place.