org.onebusaway.gtfs.model.calendar
Class LocalizedServiceId
java.lang.Object
org.onebusaway.gtfs.model.calendar.LocalizedServiceId
- All Implemented Interfaces:
- Serializable, Comparable<LocalizedServiceId>
public class LocalizedServiceId
- extends Object
- implements Serializable, Comparable<LocalizedServiceId>
Combines a serviceId (represented by AgencyAndId) and a
TimeZone object that can be used to ground ServiceDate
objects. See ServiceDate.getAsDate(TimeZone) for more info.
- Author:
- bdferris
- See Also:
ServiceDate,
CalendarService,
Serialized Form
LocalizedServiceId
public LocalizedServiceId(AgencyAndId serviceId,
TimeZone timeZone)
getId
public AgencyAndId getId()
getTimeZone
public TimeZone getTimeZone()
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
compareTo
public int compareTo(LocalizedServiceId o)
- Specified by:
compareTo in interface Comparable<LocalizedServiceId>
Copyright © 2011 OneBusAway. All Rights Reserved.