|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cdx.scorebot.util.TimestampRange
public class TimestampRange
a start-end pair of Timestamps
Constructor Summary | |
---|---|
TimestampRange()
sets both timestamps to the current time |
|
TimestampRange(Timestamp startTime,
Timestamp endTime)
sets both timestamps to the specified times |
Method Summary | |
---|---|
int |
compareTo(TimestampRange tr)
Compares this TimestampRange's start date with the specified TimestampRange: earliest start timestamp will come first. |
boolean |
equals(java.lang.Object o)
|
Timestamp |
getEndTime()
gets the end time |
Timestamp |
getStartTime()
gets the start time |
void |
setEndTime(Timestamp endTime)
sets the end time |
void |
setStartTime(Timestamp startTime)
sets the start time |
java.lang.String |
toString()
returns the date/time of this timestamp range as dd-MMM-yyyy HH:mm to dd-MMM-yyyy HH:mm |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimestampRange()
public TimestampRange(Timestamp startTime, Timestamp endTime)
startTime
- beginning time of the TimestampRangeendTime
- ending time of the TimestampRangeMethod Detail |
---|
public int compareTo(TimestampRange tr)
compareTo
in interface java.lang.Comparable<TimestampRange>
tr
- the TimestampRange to compare this to
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Timestamp getStartTime()
public void setStartTime(Timestamp startTime)
public Timestamp getEndTime()
public void setEndTime(Timestamp endTime)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |