mirror of
https://gitee.com/dromara/easy-es.git
synced 2025-12-06 17:18:57 +08:00
update easy-es-core/src/main/java/com/xpc/easyes/core/toolkit/StringUtils.java.
This commit is contained in:
parent
da4d6edaf9
commit
046c6ea006
@ -41,4 +41,24 @@ public class StringUtils {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean isNotEmpty(final CharSequence cs) {
|
||||
return !isEmpty(cs);
|
||||
}
|
||||
|
||||
public static boolean isBlank(CharSequence cs) {
|
||||
if (cs != null) {
|
||||
int length = cs.length();
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (!Character.isWhitespace(cs.charAt(i))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean isNotBlank(CharSequence cs) {
|
||||
return !isBlank(cs);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user