Method
parseDateSymbol
(
char c,
String period,
int index
)
Source from the content-addressed store, hash-verified
| 3779 | } |
| 3780 | |
| 3781 | private static CalendarUnit parseDateSymbol( |
| 3782 | char c, |
| 3783 | String period, |
| 3784 | int index |
| 3785 | ) throws ParseException { |
| 3786 | |
| 3787 | switch (c) { |
| 3788 | case 'I': |
| 3789 | return MILLENNIA; |
| 3790 | case 'C': |
| 3791 | return CENTURIES; |
| 3792 | case 'E': |
| 3793 | return DECADES; |
| 3794 | case 'Y': |
| 3795 | return YEARS; |
| 3796 | case 'Q': |
| 3797 | return QUARTERS; |
| 3798 | case 'M': |
| 3799 | return MONTHS; |
| 3800 | case 'W': |
| 3801 | return WEEKS; |
| 3802 | case 'D': |
| 3803 | return DAYS; |
| 3804 | default: |
| 3805 | throw new ParseException( |
| 3806 | "Symbol \'" + c + "\' not supported: " + period, index); |
| 3807 | } |
| 3808 | |
| 3809 | } |
| 3810 | |
| 3811 | private static ClockUnit parseTimeSymbol( |
| 3812 | char c, |
Tested by
no test coverage detected