public class NumberUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
format(Number num,
ExcelContentProperty contentProperty)
format
|
static CellData |
formatToCellData(Number num,
ExcelContentProperty contentProperty)
format
|
static BigDecimal |
parseBigDecimal(String string,
ExcelContentProperty contentProperty)
parse
|
static Byte |
parseByte(String string,
ExcelContentProperty contentProperty)
parse
|
static Double |
parseDouble(String string,
ExcelContentProperty contentProperty)
parse
|
static Float |
parseFloat(String string,
ExcelContentProperty contentProperty)
parse
|
static Integer |
parseInteger(String string,
ExcelContentProperty contentProperty)
parse
|
static Long |
parseLong(String string,
ExcelContentProperty contentProperty)
parse
|
static Short |
parseShort(String string,
ExcelContentProperty contentProperty)
parse
|
public static String format(Number num, ExcelContentProperty contentProperty)
num - contentProperty - public static CellData formatToCellData(Number num, ExcelContentProperty contentProperty)
num - contentProperty - public static Short parseShort(String string, ExcelContentProperty contentProperty) throws ParseException
string - contentProperty - ParseExceptionpublic static Long parseLong(String string, ExcelContentProperty contentProperty) throws ParseException
string - contentProperty - ParseExceptionpublic static Integer parseInteger(String string, ExcelContentProperty contentProperty) throws ParseException
string - contentProperty - ParseExceptionpublic static Float parseFloat(String string, ExcelContentProperty contentProperty) throws ParseException
string - contentProperty - ParseExceptionpublic static BigDecimal parseBigDecimal(String string, ExcelContentProperty contentProperty) throws ParseException
string - contentProperty - ParseExceptionpublic static Byte parseByte(String string, ExcelContentProperty contentProperty) throws ParseException
string - contentProperty - ParseExceptionpublic static Double parseDouble(String string, ExcelContentProperty contentProperty) throws ParseException
string - contentProperty - ParseExceptionCopyright © 2018–2021 Alibaba Group. All rights reserved.