org.onebusaway.gtfs.model
Class AgencyAndIdInstance
java.lang.Object
org.onebusaway.gtfs.model.AgencyAndIdInstance
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<AgencyAndIdInstance>
public class AgencyAndIdInstance
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Comparable<AgencyAndIdInstance>
An identifier class that combines a AgencyAndId id with a service
date. See ServiceDate for more details of the service date idea.
- Author:
- bdferris
- See Also:
AgencyAndId,
ServiceDate,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
AgencyAndIdInstance
public AgencyAndIdInstance(AgencyAndId id,
long serviceDate)
getId
public AgencyAndId getId()
getServiceDate
public long getServiceDate()
compareTo
public int compareTo(AgencyAndIdInstance o)
- Specified by:
compareTo in interface java.lang.Comparable<AgencyAndIdInstance>
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
Copyright © 2011 OneBusAway. All Rights Reserved.