org.onebusaway.transit_data_federation.model
Class ServiceDateAndId

java.lang.Object
  extended by org.onebusaway.transit_data_federation.model.ServiceDateAndId
All Implemented Interfaces:
Serializable

public final class ServiceDateAndId
extends Object
implements Serializable

Combines an AgencyAndId id with a service date. Typically, the id is either a trip id or a block id. The service date is the "midnight" start-time of a service date on which the trip is operating. Recall that "midnight" is relative to the time-zone the trip or block is operating in (as opposed to the one the server process is operating in) and to any trickiness with DST, as defined in the GTFS spec.

Author:
bdferris
See Also:
Serialized Form

Constructor Summary
ServiceDateAndId(long serviceDate, org.onebusaway.gtfs.model.AgencyAndId id)
           
 
Method Summary
 boolean equals(Object obj)
           
 org.onebusaway.gtfs.model.AgencyAndId getId()
           
 long getServiceDate()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceDateAndId

public ServiceDateAndId(long serviceDate,
                        org.onebusaway.gtfs.model.AgencyAndId id)
Method Detail

getServiceDate

public long getServiceDate()
Returns:
the service date (Unix-time)

getId

public org.onebusaway.gtfs.model.AgencyAndId getId()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 OneBusAway. All Rights Reserved.