类 NumberUtils
java.lang.Object
com.sh.wf.excel.util.NumberUtils
Number utils
-
方法概要
修饰符和类型方法说明static Stringformat(Number num, ExcelContentProperty contentProperty) formatstatic CellDataformatToCellData(Number num, ExcelContentProperty contentProperty) formatstatic BigDecimalparseBigDecimal(String string, ExcelContentProperty contentProperty) parsestatic ByteparseByte(String string, ExcelContentProperty contentProperty) parsestatic DoubleparseDouble(String string, ExcelContentProperty contentProperty) parsestatic FloatparseFloat(String string, ExcelContentProperty contentProperty) parsestatic IntegerparseInteger(String string, ExcelContentProperty contentProperty) parsestatic LongparseLong(String string, ExcelContentProperty contentProperty) parsestatic ShortparseShort(String string, ExcelContentProperty contentProperty) parse
-
方法详细资料
-
format
format- 参数:
num- NumbercontentProperty- ExcelContentProperty- 返回:
- String
-
formatToCellData
format- 参数:
num- NumbercontentProperty- ExcelContentProperty- 返回:
- CellData
-
parseShort
public static Short parseShort(String string, ExcelContentProperty contentProperty) throws ParseException parse- 参数:
string- StringcontentProperty- ExcelContentProperty- 返回:
- Short
- 抛出:
ParseException- ParseException
-
parseLong
public static Long parseLong(String string, ExcelContentProperty contentProperty) throws ParseException parse- 参数:
string- StringcontentProperty- ExcelContentProperty- 返回:
- Long
- 抛出:
ParseException- ParseException
-
parseInteger
public static Integer parseInteger(String string, ExcelContentProperty contentProperty) throws ParseException parse- 参数:
string- StringcontentProperty- ExcelContentProperty- 返回:
- Integer
- 抛出:
ParseException- ParseException
-
parseFloat
public static Float parseFloat(String string, ExcelContentProperty contentProperty) throws ParseException parse- 参数:
string- StringcontentProperty- ExcelContentProperty- 返回:
- Float
- 抛出:
ParseException- ParseException
-
parseBigDecimal
public static BigDecimal parseBigDecimal(String string, ExcelContentProperty contentProperty) throws ParseException parse- 参数:
string- StringcontentProperty- ExcelContentProperty- 返回:
- BigDecimal
- 抛出:
ParseException- ParseException
-
parseByte
public static Byte parseByte(String string, ExcelContentProperty contentProperty) throws ParseException parse- 参数:
string- StringcontentProperty- ExcelContentProperty- 返回:
- Byte
- 抛出:
ParseException- ParseException
-
parseDouble
public static Double parseDouble(String string, ExcelContentProperty contentProperty) throws ParseException parse- 参数:
string- StringcontentProperty- ExcelContentProperty- 返回:
- Double
- 抛出:
ParseException- ParseException
-