public class DispatchRecord extends java.lang.Object implements java.lang.Comparable<DispatchRecord>
Constructor and Description |
---|
DispatchRecord(APITime time,
java.lang.String train)
Construct a Dispatch Record.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DispatchRecord o)
Compare the time of this dispatch record, with the time of the specified
record.
|
APITime |
getTime()
Gets the time of dispatch for this record.
|
java.lang.String |
getTrain()
Gets the train for which this dispatch record refers to.
|
void |
setTime(APITime time)
Sets the time for the dispatch in this record
|
public DispatchRecord(APITime time, java.lang.String train)
time
- train
- public APITime getTime()
public void setTime(APITime time)
time
- public java.lang.String getTrain()
public int compareTo(DispatchRecord o)
compareTo
in interface java.lang.Comparable<DispatchRecord>