目录

Period

Class Info

public class Period

表示一个时间段。

Public Constructor Summary

Constructor Name

Period()

默认的构造方法。

Public Method Summary

Qualifier and Type

Method Name and Description

TimeOfWeek

getClose()

获取关闭时间。

TimeOfWeek

getOpen()

获取开放时间。

void

setClose(TimeOfWeek close)

设置关闭时间。

void

setOpen(TimeOfWeek open)

设置开放时间。

Public Methods

[h2]getClose

Method

public TimeOfWeek getClose()

您调用此API可以获取关闭时间。

Returns

Type

Description

TimeOfWeek

地点的关闭时间。

[h2]getOpen

Method

public TimeOfWeek getOpen()

您调用此API可以获取开放时间。

Returns

Type

Description

TimeOfWeek

地点的开放时间。

[h2]setClose

Method

public void setClose(TimeOfWeek close)

您调用此API可以设置关闭时间。

Parameters

Name

Description

close

地点的关闭时间。

[h2]setOpen

Method

public void setOpen(TimeOfWeek open)

您调用此API可以设置开放时间。

Parameters

Name

Description

open

地点的开放时间。