org.onebusaway.gtfs.model.calendar
Class LocalizedServiceId

java.lang.Object
  extended by 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

Constructor Summary
LocalizedServiceId(AgencyAndId serviceId, TimeZone timeZone)
           
 
Method Summary
 int compareTo(LocalizedServiceId o)
           
 boolean equals(Object obj)
           
 AgencyAndId getId()
           
 TimeZone getTimeZone()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalizedServiceId

public LocalizedServiceId(AgencyAndId serviceId,
                          TimeZone timeZone)
Method Detail

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.