public class StrUtil extends Object
| Constructor and Description |
|---|
StrUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equalsIgnoreCase(CharSequence str1,
CharSequence str2) |
static String |
getGeneralField(CharSequence getOrSetMethodName)
获得set或get或is方法对应的标准属性名
例如:setName 返回 name |
static boolean |
isBlank(CharSequence str) |
static boolean |
isEmpty(CharSequence cs) |
static boolean |
isNotEmpty(CharSequence cs) |
static String |
removePreAndLowerFirst(CharSequence str,
int preLength)
去掉首部指定长度的字符串并将剩余字符串首字母小写
例如:str=setName, preLength=3 =》 return name |
public static String removePreAndLowerFirst(CharSequence str, int preLength)
str - 被处理的字符串preLength - 去掉的长度public static String getGeneralField(CharSequence getOrSetMethodName)
getName =》name setName =》name isName =》name
getOrSetMethodName - Get或Set方法名public static boolean isEmpty(CharSequence cs)
public static boolean isNotEmpty(CharSequence cs)
public static boolean equalsIgnoreCase(CharSequence str1, CharSequence str2)
public static boolean isBlank(CharSequence str)
Copyright © 2025. All rights reserved.