@IntRange(from=0, to=11) int month;
If only one of the to and from fields is set, then the other will default to
the max/min value of the type of the variable that is annotated. (In other words, the defaults
Long.MIN_VALUE and Long.MAX_VALUE are used only for long; appropriate
values are used for other types.)
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long |
| from | back to summary |
|---|---|
| public long from() Largest value in the range, inclusive.
| |
| to | back to summary |
|---|---|
| public long to() Largest value in the range, inclusive.
| |