org.onebusaway.gtfs.model
Class AgencyAndIdInstance
java.lang.Object
org.onebusaway.gtfs.model.AgencyAndIdInstance
- All Implemented Interfaces:
- Serializable, Comparable<AgencyAndIdInstance>
public class AgencyAndIdInstance
- extends Object
- implements Serializable, 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
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 Comparable<AgencyAndIdInstance>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2011 OneBusAway. All Rights Reserved.