Package oracle.as.scheduler
Class RecurrenceFields.YEAR
java.lang.Object
oracle.as.scheduler.RecurrenceFields.YEAR
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RecurrenceFields
Class that encapsulate the value of a year.
YEAR
is wrapper class that uses an integer to represent
a year with the required restrictions on the integer value.
All years after 1900 can be represented by this class.
The maximum year supported by this class is 9999.
An YEAR
instance can be obtained via the
valueOf(int)
method.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
value()
The value of this YEAR as an integer.static RecurrenceFields.YEAR
valueOf
(int value) The YEAR instance representing the specified int value.
-
Method Details
-
value
public int value()The value of this YEAR as an integer.- Returns:
- the numeric value represented by this object.
-
valueOf
The YEAR instance representing the specified int value. The value must be a positive integer greater than 0.- Parameters:
value
- an int value.- Returns:
- an instance of YEAR representing the int value.
- Throws:
IllegalArgumentException
- the specified value is invalid.
-