public abstract class BigIntegerUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
BigIntegerUtils.BigIntegerCache |
| 限定符和类型 | 字段和说明 |
|---|---|
static BigInteger |
BYTE_MAX_VALUE |
static BigInteger |
BYTE_MIN_VALUE |
private static LruMap<String,BigInteger> |
cache |
static BigInteger[] |
EMPTY_ARRAY |
static BigInteger |
INTEGER_MAX_VALUE |
static BigInteger |
INTEGER_MIN_VALUE |
static BigInteger |
LONG_MAX_VALUE |
static BigInteger |
LONG_MIN_VALUE |
static BigInteger |
SHORT_MAX_VALUE |
static BigInteger |
SHORT_MIN_VALUE |
| 构造器和说明 |
|---|
BigIntegerUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BigInteger |
add(Number a,
Number b) |
static BigInteger |
add(String a,
String b) |
static String |
addAndFormat(Number a,
Number b,
String pattern,
String defaultValue) |
static String |
addAndFormat(String a,
String b,
String pattern,
String defaultValue) |
static boolean |
between(BigInteger value,
Number min,
Number max) |
static void |
clearCache() |
static BigInteger |
decode(String value) |
static boolean |
in(BigInteger value,
Number min,
Number max) |
static boolean |
isEven(BigInteger value) |
static boolean |
isOdd(BigInteger value) |
static BigInteger |
multiply(Number a,
Number b) |
static BigInteger |
multiply(String a,
String b) |
static String |
multiplyAndFormat(Number a,
Number b,
String pattern,
String defaultValue) |
static String |
multiplyAndFormat(String a,
String b,
String pattern,
String defaultValue) |
static boolean |
notBetween(BigInteger value,
Number min,
Number max) |
static boolean |
notIn(BigInteger value,
Number min,
Number max) |
static BigInteger |
parse(String str) |
static BigInteger[] |
parseMany(String[] strings) |
static BigInteger[] |
parseMany(String[] strings,
boolean thrown) |
static BigInteger |
valueOf(Boolean b) |
static BigInteger |
valueOf(Boolean b,
BigInteger defaultValue) |
static BigInteger[] |
valueOf(byte[] array) |
static BigInteger |
valueOf(Character c) |
static BigInteger |
valueOf(Character c,
BigInteger defaultValue) |
static BigInteger[] |
valueOf(double[] array) |
static BigInteger[] |
valueOf(float[] array) |
static BigInteger[] |
valueOf(int[] array) |
static BigInteger[] |
valueOf(long[] array) |
static BigInteger |
valueOf(Number number) |
static BigInteger[] |
valueOf(Number[] numbers) |
static BigInteger[] |
valueOf(Number[] numbers,
BigInteger defaultValue) |
static BigInteger |
valueOf(Number number,
BigInteger defaultValue) |
static BigInteger[] |
valueOf(short[] array) |
static BigInteger |
valueOf(String str) |
static BigInteger[] |
valueOf(String[] strings) |
static BigInteger[] |
valueOf(String[] strings,
BigInteger defaultValue) |
static BigInteger |
valueOf(String str,
BigInteger defaultValue) |
public static final BigInteger BYTE_MAX_VALUE
public static final BigInteger BYTE_MIN_VALUE
public static final BigInteger SHORT_MAX_VALUE
public static final BigInteger SHORT_MIN_VALUE
public static final BigInteger INTEGER_MAX_VALUE
public static final BigInteger INTEGER_MIN_VALUE
public static final BigInteger LONG_MAX_VALUE
public static final BigInteger LONG_MIN_VALUE
public static final BigInteger[] EMPTY_ARRAY
private static final LruMap<String,BigInteger> cache
public static void clearCache()
public static boolean notBetween(BigInteger value, Number min, Number max)
public static boolean between(BigInteger value, Number min, Number max)
public static boolean notIn(BigInteger value, Number min, Number max)
public static boolean in(BigInteger value, Number min, Number max)
public static BigInteger add(Number a, Number b)
public static BigInteger add(String a, String b)
public static String addAndFormat(Number a, Number b, String pattern, String defaultValue)
public static String addAndFormat(String a, String b, String pattern, String defaultValue)
public static BigInteger multiply(Number a, Number b)
public static BigInteger multiply(String a, String b)
public static String multiplyAndFormat(String a, String b, String pattern, String defaultValue)
public static String multiplyAndFormat(Number a, Number b, String pattern, String defaultValue)
public static boolean isEven(BigInteger value)
public static boolean isOdd(BigInteger value)
public static BigInteger[] valueOf(byte[] array)
public static BigInteger[] valueOf(short[] array)
public static BigInteger[] valueOf(int[] array)
public static BigInteger[] valueOf(long[] array)
public static BigInteger[] valueOf(float[] array)
public static BigInteger[] valueOf(double[] array)
public static BigInteger[] valueOf(Number[] numbers)
public static BigInteger[] valueOf(Number[] numbers, BigInteger defaultValue)
public static BigInteger valueOf(Number number)
public static BigInteger valueOf(Number number, BigInteger defaultValue)
public static BigInteger decode(String value)
public static BigInteger parse(String str)
public static BigInteger[] parseMany(String[] strings)
public static BigInteger[] parseMany(String[] strings, boolean thrown)
public static BigInteger valueOf(Character c)
public static BigInteger valueOf(Character c, BigInteger defaultValue)
public static BigInteger valueOf(Boolean b)
public static BigInteger valueOf(Boolean b, BigInteger defaultValue)
public static BigInteger valueOf(String str)
public static BigInteger valueOf(String str, BigInteger defaultValue)
public static BigInteger[] valueOf(String[] strings)
public static BigInteger[] valueOf(String[] strings, BigInteger defaultValue)
Copyright © 2020. All rights reserved.