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
- ParseException
public static Long parseLong(String string, ExcelContentProperty contentProperty) throws ParseException
string
- contentProperty
- ParseException
public static Integer parseInteger(String string, ExcelContentProperty contentProperty) throws ParseException
string
- contentProperty
- ParseException
public static Float parseFloat(String string, ExcelContentProperty contentProperty) throws ParseException
string
- contentProperty
- ParseException
public static BigDecimal parseBigDecimal(String string, ExcelContentProperty contentProperty) throws ParseException
string
- contentProperty
- ParseException
public static Byte parseByte(String string, ExcelContentProperty contentProperty) throws ParseException
string
- contentProperty
- ParseException
public static Double parseDouble(String string, ExcelContentProperty contentProperty) throws ParseException
string
- contentProperty
- ParseException
Copyright © 2018–2021 Alibaba Group. All rights reserved.