Search in sources :

Example 1 with StopTimeComparator

use of org.onebusaway.gtfs.serialization.comparators.StopTimeComparator in project onebusaway-gtfs-modules by OneBusAway.

the class GtfsEntitySchemaFactory method getEntityComparators.

public static Map<Class<?>, Comparator<?>> getEntityComparators() {
    Map<Class<?>, Comparator<?>> comparators = new HashMap<Class<?>, Comparator<?>>();
    comparators.put(Agency.class, getComparatorForIdentityBeanType(Agency.class));
    comparators.put(Block.class, getComparatorForIdentityBeanType(Block.class));
    comparators.put(Route.class, getComparatorForIdentityBeanType(Route.class));
    comparators.put(Stop.class, getComparatorForIdentityBeanType(Stop.class));
    comparators.put(Trip.class, getComparatorForIdentityBeanType(Trip.class));
    comparators.put(StopTime.class, new StopTimeComparator());
    comparators.put(ShapePoint.class, new ShapePointComparator());
    comparators.put(ServiceCalendar.class, new ServiceCalendarComparator());
    comparators.put(ServiceCalendarDate.class, new ServiceCalendarDateComparator());
    return comparators;
}
Also used : Trip(org.onebusaway.gtfs.model.Trip) Agency(org.onebusaway.gtfs.model.Agency) ServiceCalendarComparator(org.onebusaway.gtfs.serialization.comparators.ServiceCalendarComparator) HashMap(java.util.HashMap) Stop(org.onebusaway.gtfs.model.Stop) ServiceCalendarDateComparator(org.onebusaway.gtfs.serialization.comparators.ServiceCalendarDateComparator) ShapePointComparator(org.onebusaway.gtfs.serialization.comparators.ShapePointComparator) StopTimeComparator(org.onebusaway.gtfs.serialization.comparators.StopTimeComparator) ServiceCalendarComparator(org.onebusaway.gtfs.serialization.comparators.ServiceCalendarComparator) Comparator(java.util.Comparator) ServiceCalendarDateComparator(org.onebusaway.gtfs.serialization.comparators.ServiceCalendarDateComparator) StopTimeComparator(org.onebusaway.gtfs.serialization.comparators.StopTimeComparator) ShapePointComparator(org.onebusaway.gtfs.serialization.comparators.ShapePointComparator) Block(org.onebusaway.gtfs.model.Block) Route(org.onebusaway.gtfs.model.Route)

Aggregations

Comparator (java.util.Comparator)1 HashMap (java.util.HashMap)1 Agency (org.onebusaway.gtfs.model.Agency)1 Block (org.onebusaway.gtfs.model.Block)1 Route (org.onebusaway.gtfs.model.Route)1 Stop (org.onebusaway.gtfs.model.Stop)1 Trip (org.onebusaway.gtfs.model.Trip)1 ServiceCalendarComparator (org.onebusaway.gtfs.serialization.comparators.ServiceCalendarComparator)1 ServiceCalendarDateComparator (org.onebusaway.gtfs.serialization.comparators.ServiceCalendarDateComparator)1 ShapePointComparator (org.onebusaway.gtfs.serialization.comparators.ShapePointComparator)1 StopTimeComparator (org.onebusaway.gtfs.serialization.comparators.StopTimeComparator)1