org.onebusaway.gtfs.model.calendar
Class LocalizedServiceId
java.lang.Object
org.onebusaway.gtfs.model.calendar.LocalizedServiceId
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<LocalizedServiceId>
public class LocalizedServiceId
- extends java.lang.Object
- implements java.io.Serializable, java.lang.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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LocalizedServiceId
public LocalizedServiceId(AgencyAndId serviceId,
java.util.TimeZone timeZone)
getId
public AgencyAndId getId()
getTimeZone
public java.util.TimeZone getTimeZone()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
compareTo
public int compareTo(LocalizedServiceId o)
- Specified by:
compareTo in interface java.lang.Comparable<LocalizedServiceId>
Copyright © 2011 OneBusAway. All Rights Reserved.