BigDecimal for REALLY
big values (over 500 characters).
This class is not meant to be used directly. It is designed to be used by Jackson JSON parsers (and parsers for other Jackson supported data formats). The parsers check for invalid characters and the length of the number. Without these checks, this parser is susceptible to performing badly with invalid inputs. If you need to parse numbers directly, please use JavaBigDecimalParser in fastdoubleparser instead.
Based on ideas from this this git commit.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static String | |
| private static String | |
| private static NumberFormatException | |
| private static NumberFormatException | |
| public static BigDecimal | |
| public static BigDecimal | Returns: BigDecimal valueInternal Jackson method. |
| public static BigDecimal | |
| public static BigDecimal | |
| public static BigDecimal | Returns: BigDecimal valueInternal Jackson method. |
| MAX_CHARS_TO_REPORT | back to summary |
|---|---|
| pack-priv static final int MAX_CHARS_TO_REPORT | |
| SIZE_FOR_SWITCH_TO_FASTDOUBLEPARSER | back to summary |
|---|---|
| private static final int SIZE_FOR_SWITCH_TO_FASTDOUBLEPARSER | |
| BigDecimalParser | back to summary |
|---|---|
| private BigDecimalParser() | |
| _generateExceptionMessage | back to summary |
|---|---|
| private static String _generateExceptionMessage(final String valueToReport, final String desc) | |
| _getValueDesc | back to summary |
|---|---|
| private static String _getValueDesc(final String fullValue) | |
| _getValueDesc | back to summary |
|---|---|
| private static String _getValueDesc(final char[] array, final int offset, final int len) | |
| _parseFailure | back to summary |
|---|---|
| private static NumberFormatException _parseFailure(Exception e, String fullValue) | |
| _parseFailure | back to summary |
|---|---|
| private static NumberFormatException _parseFailure(final Exception e, final char[] array, final int offset, final int len) | |
| parse | back to summary |
|---|---|
| public static BigDecimal parse(String valueStr) Internal Jackson method. Please do not use. Note Caller MUST pre-validate that given String represents a valid representation
of
| |
| parse | back to summary |
|---|---|
| public static BigDecimal parse(final char[] chars, final int off, final int len) Internal Jackson method. Please do not use. Note Caller MUST pre-validate that given String represents a valid representation
of
| |
| parse | back to summary |
|---|---|
| public static BigDecimal parse(char[] chars) Internal Jackson method. Please do not use. Note Caller MUST pre-validate that given String represents a valid representation
of
| |
| parseWithFastParser | back to summary |
|---|---|
| public static BigDecimal parseWithFastParser(final String valueStr) Internal Jackson method. Please do not use. Note Caller MUST pre-validate that given String represents a valid representation
of
| |
| parseWithFastParser | back to summary |
|---|---|
| public static BigDecimal parseWithFastParser(final char[] ch, final int off, final int len) Internal Jackson method. Please do not use. Note Caller MUST pre-validate that given String represents a valid representation
of
| |