BigInteger value; the supported syntax is compatible
with BigInteger#BigInteger(String, int).
Syntax
Formal specification of the grammar:
- BigIntegerLiteral:
- [Sign] Digits
- Sign:
- (one of)
+ -
- Digits:
- Digit {Digit}
- Digit:
- (one of)
0 1 2 3 4 5 6 7 8 9a b c d e f g h i j k l m n o p q r s t u v w x y zA B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Character lengths accepted by BigInteger#BigInteger(String):
Significand: 1 to 1,292,782,621 decimal digits.
The resulting value must fit into 2^31 - 1 bits. The decimal
representation of the value 2^31 - 1 has 646,456,993 digits.
Therefore an input String can only contain up to that many significant
digits - the remaining digits must be leading zeroes.
BigIntegerLiteral: 1,292,782,621 + 1 = 1,292,782,622 characters.| Modifier and Type | Field and Description |
|---|---|
| private static final JavaBigIntegerFromByteArray | |
| private static final JavaBigIntegerFromCharArray | |
| private static final JavaBigIntegerFromCharSequence |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BigInteger | Returns: the parsed valuethe string to be parsed str)Convenience method for calling |
| public static BigInteger | Returns: the parsed valuethe string to be parsed str, int the radix to be used in interpreting the radix)strConvenience method for calling |
| public static BigInteger | Returns: the parsed valuethe string to be parsed str, int The index of the first character to parse offset, int The number of characters to parse length)Convenience method for calling |
| public static BigInteger | Returns: the parsed valuethe string to be parsed str, int The index of the first character to parse offset, int The number of characters to parse length, int the radix to be used in interpreting the radix)strParses a |
| public static BigInteger | Returns: the parsed valuethe string to be parsed str)Convenience method for calling |
| public static BigInteger | Returns: the parsed valuethe string to be parsed str, int the radix to be used in interpreting the radix)strConvenience method for calling |
| public static BigInteger | Returns: the parsed valuethe string to be parsed, a byte array with characters
in ISO-8859-1, ASCII or UTF-8 encoding str, int The index of the first character to parse offset, int The number of characters to parse length)Parses a |
| public static BigInteger | Returns: the parsed valuethe string to be parsed, a byte array with characters
in ISO-8859-1, ASCII or UTF-8 encoding str, int The index of the first character to parse offset, int The number of characters to parse length, int the radix to be used in interpreting the radix)strParses a |
| public static BigInteger | Returns: the parsed valuethe string to be parsed str)Convenience method for calling |
| public static BigInteger | Returns: the parsed valuethe string to be parsed str, int the radix to be used in interpreting the radix)strConvenience method for calling |
| public static BigInteger | Returns: the parsed valuethe string to be parsed, a byte array with characters
in ISO-8859-1, ASCII or UTF-8 encoding str, int The index of the first character to parse offset, int The number of characters to parse length)Parses a |
| public static BigInteger | Returns: the parsed valuethe string to be parsed, a byte array with characters
in ISO-8859-1, ASCII or UTF-8 encoding str, int The index of the first character to parse offset, int The number of characters to parse length, int the radix to be used in interpreting the radix)strParses a |
| BYTE_ARRAY_PARSER | back to summary |
|---|---|
| private static final JavaBigIntegerFromByteArray BYTE_ARRAY_PARSER | |
| CHAR_ARRAY_PARSER | back to summary |
|---|---|
| private static final JavaBigIntegerFromCharArray CHAR_ARRAY_PARSER | |
| CHAR_SEQUENCE_PARSER | back to summary |
|---|---|
| private static final JavaBigIntegerFromCharSequence CHAR_SEQUENCE_PARSER | |
| JavaBigIntegerParser | back to summary |
|---|---|
| private JavaBigIntegerParser() Don't let anyone instantiate this class. | |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(CharSequence str) Convenience method for calling
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(CharSequence str, int radix) Convenience method for calling
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(CharSequence str, int offset, int length) Convenience method for calling
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(CharSequence str, int offset, int length, int radix) Parses a
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(byte[] str) Convenience method for calling
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(byte[] str, int radix) Convenience method for calling
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(byte[] str, int offset, int length) Parses a
See
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(byte[] str, int offset, int length, int radix) Parses a
See
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(char[] str) Convenience method for calling
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(char[] str, int radix) Convenience method for calling
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(char[] str, int offset, int length) Parses a
See
| |
| parseBigInteger | back to summary |
|---|---|
| public static BigInteger parseBigInteger(char[] str, int offset, int length, int radix) Parses a
See
| |