public class Service extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
Calendar |
calendar |
Map<LocalDate,CalendarDate> |
calendar_dates |
String |
service_id |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activeOn(LocalDate date)
Is this service active on the specified date?
|
static boolean |
checkOverlap(Service s1,
Service s2)
Checks for overlapping days of week between two service calendars
|
boolean |
hasAnyService() |
Service |
removeDays(String service_id,
EnumSet<DayOfWeek> daysToRemove) |
public String service_id
public Calendar calendar
public Map<LocalDate,CalendarDate> calendar_dates
public Service(String service_id)
public Service removeDays(String service_id, EnumSet<DayOfWeek> daysToRemove)
service_id - the service_id to assign to the newly created copy.daysToRemove - the days of the week on which to deactivate service in the copy.public boolean hasAnyService()
public boolean activeOn(LocalDate date)
Copyright © 2019. All rights reserved.