Method
parseAmount
(
String period,
String number,
int index
)
Source from the content-addressed store, hash-verified
| 3877 | } |
| 3878 | |
| 3879 | private static long parseAmount( |
| 3880 | String period, |
| 3881 | String number, |
| 3882 | int index |
| 3883 | ) throws ParseException { |
| 3884 | |
| 3885 | try { |
| 3886 | return Long.parseLong(number); |
| 3887 | } catch (NumberFormatException nfe) { |
| 3888 | ParseException pe = new ParseException(period, index); |
| 3889 | pe.initCause(nfe); |
| 3890 | throw pe; |
| 3891 | } |
| 3892 | |
| 3893 | } |
| 3894 | |
| 3895 | /** |
| 3896 | * @serialData Uses <a href="../../serialized-form.html#net.time4j.SPX"> |
Tested by
no test coverage detected