|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.TimeOfDay
public class TimeOfDay
Represents a time in hour, minute and second of any given day.
The hour is in 24-hour convention, meaning values are from 0 to 23.
DailyTimeIntervalScheduleBuilder,
Serialized Form| Constructor Summary | |
|---|---|
TimeOfDay(int hour,
int minute)
Create a TimeOfDay instance for the given hour and minute (at the zero second of the minute). |
|
TimeOfDay(int hour,
int minute,
int second)
Create a TimeOfDay instance for the given hour, minute and second. |
|
| Method Summary | |
|---|---|
boolean |
before(TimeOfDay timeOfDay)
Determine with this time of day is before the given time of day. |
boolean |
equals(java.lang.Object obj)
|
int |
getHour()
The hour of the day (between 0 and 23). |
int |
getMinute()
The minute of the hour. |
int |
getSecond()
The second of the minute. |
java.util.Date |
getTimeOfDayForDate(java.util.Date dateTime)
Return a date with time of day reset to this object values. |
int |
hashCode()
|
static TimeOfDay |
hourAndMinuteOfDay(int hour,
int minute)
Create a TimeOfDay instance for the given hour and minute (at the zero second of the minute). |
static TimeOfDay |
hourMinuteAndSecondOfDay(int hour,
int minute,
int second)
Create a TimeOfDay instance for the given hour, minute and second. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeOfDay(int hour,
int minute,
int second)
hour - The hour of day, between 0 and 23.minute - The minute of the hour, between 0 and 59.second - The second of the minute, between 0 and 59.
java.lang.IllegalArgumentException - if one or more of the input values is out of their valid range.
public TimeOfDay(int hour,
int minute)
hour - The hour of day, between 0 and 23.minute - The minute of the hour, between 0 and 59.
java.lang.IllegalArgumentException - if one or more of the input values is out of their valid range.| Method Detail |
|---|
public static TimeOfDay hourMinuteAndSecondOfDay(int hour,
int minute,
int second)
hour - The hour of day, between 0 and 23.minute - The minute of the hour, between 0 and 59.second - The second of the minute, between 0 and 59.
java.lang.IllegalArgumentException - if one or more of the input values is out of their valid range.
public static TimeOfDay hourAndMinuteOfDay(int hour,
int minute)
hour - The hour of day, between 0 and 23.minute - The minute of the hour, between 0 and 59.
java.lang.IllegalArgumentException - if one or more of the input values is out of their valid range.public int getHour()
public int getMinute()
public int getSecond()
public boolean before(TimeOfDay timeOfDay)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.Date getTimeOfDayForDate(java.util.Date dateTime)
public 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 | |||||||||