org.onebusaway.gtfs.model
Class AgencyAndIdInstance

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

Constructor Summary
AgencyAndIdInstance(AgencyAndId id, long serviceDate)
           
 
Method Summary
 int compareTo(AgencyAndIdInstance o)
           
 boolean equals(java.lang.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 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.