Package oracle.as.scheduler
Class RecurrenceFields.TIME_OF_DAY
java.lang.Object
oracle.as.scheduler.RecurrenceFields.TIME_OF_DAY
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RecurrenceFields
Class that defines the time of the day.
The time of the day is defined in the format HH:MM:SS where
-
HHrepresents the hour part of the time. Valid values are between 0 and 23. -
MMrepresents the minute within the hour. Valid values are between 0 and 59. -
SSrepresents the seconds within the minutes. Valid values are between 0 and 59.
An TIME_OF_DAY instance can be obtained via the
valueOf(int, int, int) method.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intMaximum possible value for Hour part (HH).static final intMaximum possible value for Minute part (MM).static final intMaximum possible value for Second part (SS). -
Method Summary
Modifier and TypeMethodDescriptionintgetHour()Get the Hour part of this TIME_OF_DAY instance.intGet the Minute part of this TIME_OF_DAY instance.intGet the Second part of this TIME_OF_DAY instance.voidsetHour(int hour) Set the Hour part of this TIME_OF_DAY instance.voidsetMinute(int minute) Set the Minute part of this TIME_OF_DAY instance.voidsetSecond(int second) Set the second part of this TIME_OF_DAY instance.toString()The string representation of this TIME_OF_DAY instance.static RecurrenceFields.TIME_OF_DAYvalueOf(int hour, int minute, int second) A TIME_OF_DAY instance representing the time specified by given values for hour, minute, and second.
-
Field Details
-
MAX_HOUR_VALUE
public static final int MAX_HOUR_VALUEMaximum possible value for Hour part (HH).- See Also:
-
MAX_MINUTE_VALUE
public static final int MAX_MINUTE_VALUEMaximum possible value for Minute part (MM).- See Also:
-
MAX_SECOND_VALUE
public static final int MAX_SECOND_VALUEMaximum possible value for Second part (SS).- See Also:
-
-
Method Details
-
valueOf
public static RecurrenceFields.TIME_OF_DAY valueOf(int hour, int minute, int second) throws IllegalArgumentException A TIME_OF_DAY instance representing the time specified by given values for hour, minute, and second. All the values must be within the allowed range.- Parameters:
hour- the hour part of the time.minute- the minutes within the hour.second- the seconds within the minute.- Returns:
- an instance of TIME_OF_DAY representing the given time.
- Throws:
IllegalArgumentException- if hour, minute and second do not represent valid values.
-
getHour
public int getHour()Get the Hour part of this TIME_OF_DAY instance.- Returns:
- the hour part as int.
-
setHour
Set the Hour part of this TIME_OF_DAY instance.- Parameters:
hour- the hour to be set. The value must be between 0 and 23.- Throws:
IllegalArgumentException- if the specified value is not a valid value.
-
getMinute
public int getMinute()Get the Minute part of this TIME_OF_DAY instance.- Returns:
- the minute part as int.
-
setMinute
Set the Minute part of this TIME_OF_DAY instance.- Parameters:
minute- the minute to be set. The value must be between 0 and 59.- Throws:
IllegalArgumentException- if the specified value is not a valid value.
-
getSecond
public int getSecond()Get the Second part of this TIME_OF_DAY instance.- Returns:
- the second part as int.
-
setSecond
Set the second part of this TIME_OF_DAY instance.- Parameters:
second- the second to be set. The value must be between 0 and 59.- Throws:
IllegalArgumentException- if the specified value is not a valid value.
-
toString
The string representation of this TIME_OF_DAY instance. The returned string willHH:MM:SS formatwith colon as the field separator.
-