Package com.xxl.tool.excel.util
Class FieldReflectionUtil
java.lang.Object
com.xxl.tool.excel.util.FieldReflectionUtil
api request field, reflect util
- Author:
- xuxueli 2017-05-26
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatValue(Field field, Object value) 参数格式化为Stringstatic BooleanparseBoolean(String value) static Bytestatic DateparseDate(String value, ExcelField excelField) static DoubleparseDouble(String value) static FloatparseFloat(String value) static Integerstatic Longstatic ShortparseShort(String value) static ObjectparseValue(Field field, String value) 参数解析 (支持:Byte、Boolean、String、Short、Integer、Long、Float、Double、Date)
-
Method Details
-
parseByte
-
parseBoolean
-
parseInt
-
parseShort
-
parseLong
-
parseFloat
-
parseDouble
-
parseDate
-
parseValue
参数解析 (支持:Byte、Boolean、String、Short、Integer、Long、Float、Double、Date)- Parameters:
field-value-- Returns:
- Object
-
formatValue
参数格式化为String- Parameters:
field-value-- Returns:
- String
-