public class Hours extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Hours.Period
Represents a period of time in which the place is opened.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Hours() |
| Modifier and Type | Method and Description |
|---|---|
protected Hours |
addPeriod(Hours.Period period)
Adds a period to this schedule's list of periods.
|
List<Hours.Period> |
getPeriods()
Returns an unmodifiable list of all the periods of operation.
|
boolean |
isAlwaysOpened()
Returns true if the place is always opened.
|
protected Hours |
setAlwaysOpened(boolean alwaysOpened)
Sets if the establishment is always opened.
|
String |
toString() |
public boolean isAlwaysOpened()
protected Hours setAlwaysOpened(boolean alwaysOpened)
alwaysOpened - if this place is always openedprotected Hours addPeriod(Hours.Period period)
period - to addpublic List<Hours.Period> getPeriods()
Copyright © 2014–2015. All rights reserved.