public final class ParamUtils extends Object
| 构造器和说明 |
|---|
ParamUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
contains(String[] arr,
String val)
Whether the array contains a value
|
static String |
createFormulaX(int startColIndex,
int rowIndex,
int endColIndex)
Horizontal creation formula
|
static String |
createFormulaY(int colIndex,
int startRow,
int endRow)
Vertical creation formula
|
static void |
deleteMapKey(Map<?,?> map,
Object key)
Delete specified key on HashMap
|
static String |
encodeMd5(String body)
MD5 encryption
|
static boolean |
equals(Object param1,
Object param2,
boolean allowEmpty)
Whether it's equal or not
|
static boolean |
isExcel(String fileName)
Check the file type is excel
|
static void |
isExcel(String fileName,
String version)
已过时。
|
static String |
numberToEn(int number)
Number to English letter
|
static <T> void |
requireNonNull(T obj,
String message)
Whether obj is null
|
public static boolean contains(String[] arr, String val)
arr - arrayval - valuepublic static String encodeMd5(String body)
body - need to encryptionpublic static boolean equals(Object param1, Object param2, boolean allowEmpty)
param1 - param1param2 - param2allowEmpty - Whether allow empty?public static <T> void requireNonNull(T obj,
String message)
T - Tobj - objmessage - error messagepublic static String createFormulaX(int startColIndex, int rowIndex, int endColIndex)
startColIndex - Start column indexrowIndex - Row indexendColIndex - End column indexpublic static String createFormulaY(int colIndex, int startRow, int endRow)
colIndex - colIndexstartRow - start row indexendRow - end row indexpublic static String numberToEn(int number)
number - numberpublic static void deleteMapKey(Map<?,?> map, Object key)
map - HashMapkey - Specified key@Deprecated public static void isExcel(String fileName, String version)
fileName - file nameversion - File type, xls or xlsxpublic static boolean isExcel(String fileName)
fileName - Excel file nameCopyright © 2021. All rights reserved.