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 CalendarService
public Set<ServiceDate> getServiceDatesForServiceId(FeedScopedId serviceId)
getServiceDatesForServiceId
in interface CalendarService
serviceId
- the target service idpublic Set<FeedScopedId> getServiceIdsOnDate(ServiceDate date)
CalendarService
getServiceIdsOnDate
in interface CalendarService
date
- the target service datepublic TimeZone getTimeZoneForAgencyId(String agencyId)
CalendarService
TimeZone
for the specified agency idgetTimeZoneForAgencyId
in interface CalendarService
agencyId
- Agency.getId()
protected CalendarServiceData getData()
Copyright © 2019. All rights reserved.