| 构造器和说明 |
|---|
ObjectUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
decryptAES(String code,
String salt)
解密
|
static String |
encryptAES(String code,
String salt)
加密
|
static boolean |
isBlank(CharSequence cs)
Checks if a CharSequence is empty (""), null or whitespace only.
|
static boolean |
isNotBlank(CharSequence cs)
Checks if a CharSequence is not empty (""), not null and not whitespace only.
|
static boolean |
isPrimitive(Object obj)
判断一个对象是否是基本类型或基本类型的封装类型
|
static int |
length(CharSequence cs)
Gets a CharSequence length or
0 if the CharSequence is
null. |
public static boolean isPrimitive(Object obj)
public static boolean isNotBlank(CharSequence cs)
Checks if a CharSequence is not empty (""), not null and not whitespace only.
Whitespace is defined by Character.isWhitespace(char).
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
true if the CharSequence is
not empty and not null and not whitespace onlypublic static boolean isBlank(CharSequence cs)
Checks if a CharSequence is empty (""), null or whitespace only.
Whitespace is defined by Character.isWhitespace(char).
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" ") = true
StringUtils.isBlank("bob") = false
StringUtils.isBlank(" bob ") = false
true if the CharSequence is null, empty or whitespace onlypublic static int length(CharSequence cs)
0 if the CharSequence is
null.0 if the CharSequence is
null.nullpublic static String decryptAES(String code, String salt) throws InvalidKeyException
InvalidKeyExceptionpublic static String encryptAES(String code, String salt) throws InvalidKeyException
InvalidKeyExceptionCopyright © 2024 tan. All rights reserved.