|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.time.SimpleTimePeriod
An arbitrary period of time, measured to millisecond precision using java.util.Date.
This class is intentionally immutable (that is, once constructed, you cannot alter the start and end attributes).
| Constructor Summary | |
SimpleTimePeriod(java.util.Date start,
java.util.Date end)
Creates a new time allocation. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if this time period is equal to another object, and
false otherwise. |
java.util.Date |
getEnd()
Returns the end date/time. |
java.util.Date |
getStart()
Returns the start date/time. |
int |
hashCode()
Returns a hash code for this object instance. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleTimePeriod(java.util.Date start,
java.util.Date end)
start - the start date/time.end - the end date/time.| Method Detail |
public java.util.Date getStart()
getStart in interface TimePeriodpublic java.util.Date getEnd()
getEnd in interface TimePeriodpublic boolean equals(java.lang.Object obj)
true if this time period is equal to another object, and
false otherwise.
The test for equality looks only at the start and end values for the time period.
obj - the other object.
public int hashCode()
The approach described by Joshua Bloch in "Effective Java" has been used here:
http://developer.java.sun.com/developer/Books/effectivejava/Chapter3.pdf
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||