MCPcopy Create free account
hub / github.com/MenoData/Time4J / parseAmount

Method parseAmount

base/src/main/java/net/time4j/Duration.java:3879–3893  ·  view source on GitHub ↗
(
        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">

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected