public class DingerUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
base64ToByteArray(String key)
base64ToByteArray
|
static String |
byteArrayToBase64(byte[] bytes)
byteArrayToBase64
|
static String |
classPackageName(String className)
classPackageName
|
static void |
close(Closeable x)
close
|
static boolean |
isEmpty(String str)
isEmpty
|
static boolean |
isNotEmpty(String str)
isNotEmpty
|
static int[] |
methodParamsGenericType(Method method,
Class<?> clazz)
获取方法中参数的泛型的参数信息
|
static int[] |
methodParamsType(Method method,
Class<?> clazz)
获取方法中参数的指定类型信息
|
static <T> T |
newInstance(Class<T> clazz) |
static String |
replaceHeadTailLineBreak(String str)
replaceHeadTailLineBreak
|
static String |
uuid()
generate uuid
|
public static byte[] base64ToByteArray(String key)
key - keypublic static String byteArrayToBase64(byte[] bytes)
bytes - bytespublic static void close(Closeable x)
x - xpublic static boolean isEmpty(String str)
str - strpublic static boolean isNotEmpty(String str)
str - strpublic static String replaceHeadTailLineBreak(String str)
str - strpublic static String classPackageName(String className)
className - classNamepublic static int[] methodParamsGenericType(Method method, Class<?> clazz)
method - methodclazz - clazzpublic static int[] methodParamsType(Method method, Class<?> clazz)
method - methodclazz - clazzpublic static <T> T newInstance(Class<T> clazz)
Copyright © 2023 AnswerAIL. All rights reserved.