public class NumberUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Number num,
ExcelContentProperty contentProperty)
format
|
static WriteCellData<?> |
formatToCellData(Number num,
ExcelContentProperty contentProperty)
format
|
static WriteCellData<?> |
formatToCellDataString(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 Integer from string
|
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 WriteCellData<?> formatToCellDataString(Number num, ExcelContentProperty contentProperty)
num - contentProperty - public static WriteCellData<?> 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 - An integer read in string formatcontentProperty - Properties of the content read inParseExceptionpublic 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–2024 Alibaba Group. All rights reserved.