public class CalendarServiceImpl extends Object implements CalendarService
CalendarService. Requires a pre-computed
CalendarServiceData bundle for efficient operation.| Constructor and Description |
|---|
CalendarServiceImpl(CalendarServiceData data) |
| Modifier and Type | Method and Description |
|---|---|
protected CalendarServiceData |
getData() |
Set<ServiceDate> |
getServiceDatesForServiceId(FeedScopedId serviceId) |
Set<FeedScopedId> |
getServiceIds() |
Set<FeedScopedId> |
getServiceIdsOnDate(ServiceDate date)
Determine the set of service ids that are active on the specified service
date.
|
TimeZone |
getTimeZoneForAgencyId(String agencyId)
Returns the instantiated
TimeZone for the specified agency id |
public CalendarServiceImpl(CalendarServiceData data)
public Set<FeedScopedId> getServiceIds()
getServiceIds in interface CalendarServicepublic Set<ServiceDate> getServiceDatesForServiceId(FeedScopedId serviceId)
getServiceDatesForServiceId in interface CalendarServiceserviceId - the target service idpublic Set<FeedScopedId> getServiceIdsOnDate(ServiceDate date)
CalendarServicegetServiceIdsOnDate in interface CalendarServicedate - the target service datepublic TimeZone getTimeZoneForAgencyId(String agencyId)
CalendarServiceTimeZone for the specified agency idgetTimeZoneForAgencyId in interface CalendarServiceagencyId - Agency.getId()protected CalendarServiceData getData()
Copyright © 2019. All rights reserved.