org.onebusaway.gtfs.model
Class AgencyAndIdInstance

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

Constructor Summary
AgencyAndIdInstance(AgencyAndId id, long serviceDate)
           
 
Method Summary
 int compareTo(AgencyAndIdInstance o)
           
 boolean equals(Object obj)
           
 AgencyAndId getId()
           
 long getServiceDate()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgencyAndIdInstance

public AgencyAndIdInstance(AgencyAndId id,
                           long serviceDate)
Method Detail

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.