public static class RecurrenceFields.DAY_OF_MONTH extends Object implements Serializable
DAY_OF_MONTH
is a wrapper class that uses an integer to represent a day of the month with required restrictions on the value of integer.
In general the allowed values for the day of a month are 1 to 31 and -1. A value of -1 indicates the last day of the month. Zero (0) is not a valid value.
The validity of the values are month dependent such as a value of 30 is not valid for the month of February.
An DAY_OF_MONTH
instance can be obtained via the RecurrenceFields.DAY_OF_MONTH.valueOf(int)
method.
Modifier and Type | Field and Description |
---|---|
static int |
MAX_VALUE |
static int |
MIN_VALUE |
Modifier and Type | Method and Description |
---|---|
int |
value()
The value of this DAY_OF_MONTH as integer.
|
static RecurrenceFields.DAY_OF_MONTH |
valueOf(int value)
The DAY_OF_MONTH associated with the given integer.
|
public static final int MAX_VALUE
public static final int MIN_VALUE
public static RecurrenceFields.DAY_OF_MONTH valueOf(int value) throws IllegalArgumentException
The integer value passed in must be a valid integer allowed by DAY_OF_MONTH. Allowed values are -1, and 1 to 31.
value
- the integer value to be converted to DAY_OF_MONTH.IllegalArgumentException
- if the value is not a valid integer value.public int value()