public static class RecurrenceFields.YEAR extends Object implements Serializable
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 RecurrenceFields.YEAR.valueOf(int)
method.
Modifier and Type | Method and Description |
---|---|
int |
value()
The value of this YEAR as an integer.
|
static RecurrenceFields.YEAR |
valueOf(int value)
The YEAR instance representing the specified int value.
|
public int value()
public static RecurrenceFields.YEAR valueOf(int value) throws IllegalArgumentException
value
- an int value.IllegalArgumentException
- the specified value is invalid.