|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--reservations.Time
A utility class to encapsulate time of day comparisons.
| Constructor Summary | |
Time(java.util.Date d)
Constructs a new Time object using the hour, minute, and second values of the specified Date |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compares this Time object with the specified object. |
boolean |
equals(java.lang.Object o)
Compares this time to the specified object. |
int |
hashCode()
Returns a hash code for this Time. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Time(java.util.Date d)
| Method Detail |
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablejava.lang.ClassCastException - if the object being
compared to is not an instance of Time (or a
subclass.)public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||