Search in sources :

Example 6 with ArrivalsAndDeparturesQueryBean

use of org.onebusaway.transit_data.model.ArrivalsAndDeparturesQueryBean in project onebusaway-application-modules by camsys.

the class ArrivalsAndDeparturesQueryBeanCacheableObjectKeyFactory method createKey.

@Override
public CacheKeyInfo createKey(Object object) {
    ArrivalsAndDeparturesQueryBean query = (ArrivalsAndDeparturesQueryBean) object;
    query = new ArrivalsAndDeparturesQueryBean(query);
    query.setTime(snapTime(query.getTime()));
    return new CacheKeyInfo(query, false);
}
Also used : CacheKeyInfo(org.onebusaway.container.cache.CacheKeyInfo) ArrivalsAndDeparturesQueryBean(org.onebusaway.transit_data.model.ArrivalsAndDeparturesQueryBean)

Aggregations

ArrivalsAndDeparturesQueryBean (org.onebusaway.transit_data.model.ArrivalsAndDeparturesQueryBean)6 ArrivalAndDepartureBean (org.onebusaway.transit_data.model.ArrivalAndDepartureBean)3 StopWithArrivalsAndDeparturesBean (org.onebusaway.transit_data.model.StopWithArrivalsAndDeparturesBean)3 HashMap (java.util.HashMap)2 StopBean (org.onebusaway.transit_data.model.StopBean)2 BigInteger (java.math.BigInteger)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 Test (org.junit.Test)1 CacheKeyInfo (org.onebusaway.container.cache.CacheKeyInfo)1 AgencyAndId (org.onebusaway.gtfs.model.AgencyAndId)1 Body (org.onebusaway.nextbus.model.nextbus.Body)1 DisplayStop (org.onebusaway.nextbus.model.nextbus.DisplayStop)1 ScheduleRoute (org.onebusaway.nextbus.model.nextbus.ScheduleRoute)1 ScheduleStop (org.onebusaway.nextbus.model.nextbus.ScheduleStop)1 ScheduleTableRow (org.onebusaway.nextbus.model.nextbus.ScheduleTableRow)1 AgencyBean (org.onebusaway.transit_data.model.AgencyBean)1 StopGroupBean (org.onebusaway.transit_data.model.StopGroupBean)1 StopGroupingBean (org.onebusaway.transit_data.model.StopGroupingBean)1 StopsForRouteBean (org.onebusaway.transit_data.model.StopsForRouteBean)1