Class ServiceIdIntervals
- java.lang.Object
-
- org.onebusaway.gtfs.model.calendar.ServiceIdIntervals
-
- All Implemented Interfaces:
Serializable,Iterable<Map.Entry<LocalizedServiceId,ServiceInterval>>
public class ServiceIdIntervals extends Object implements Serializable, Iterable<Map.Entry<LocalizedServiceId,ServiceInterval>>
AMapofLocalizedServiceIdandServiceIntervalobjects, with convenience methods for adding additional service ids and arrival-departure time intervals.- Author:
- bdferris
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceIdIntervals()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIntervals(ServiceIdIntervals intervals)voidaddStopTime(LocalizedServiceId serviceId, int arrivalTime, int departureTime)ServiceIntervalgetIntervalForServiceId(LocalizedServiceId serviceId)Set<LocalizedServiceId>getServiceIds()Iterator<Map.Entry<LocalizedServiceId,ServiceInterval>>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
addStopTime
public void addStopTime(LocalizedServiceId serviceId, int arrivalTime, int departureTime)
-
addIntervals
public void addIntervals(ServiceIdIntervals intervals)
-
getServiceIds
public Set<LocalizedServiceId> getServiceIds()
-
getIntervalForServiceId
public ServiceInterval getIntervalForServiceId(LocalizedServiceId serviceId)
-
iterator
public Iterator<Map.Entry<LocalizedServiceId,ServiceInterval>> iterator()
- Specified by:
iteratorin interfaceIterable<Map.Entry<LocalizedServiceId,ServiceInterval>>
-
-