public class StrUtil extends Object
| 构造器和说明 |
|---|
StrUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
isNull(CharSequence cs)
空
|
static boolean |
isNull(StringBuilder sb)
空
|
static int |
length(CharSequence cs) |
public static boolean isNull(StringBuilder sb)
public static boolean isNull(CharSequence cs)
public static int length(CharSequence cs)
public static boolean isNotBlank(CharSequence cs)
Checks if a CharSequence is not empty (""), not null and not whitespace only.
StringUtils.isNotBlank(null) = false
StringUtils.isNotBlank("") = false
StringUtils.isNotBlank(" ") = false
StringUtils.isNotBlank("bob") = true
StringUtils.isNotBlank(" bob ") = true
not empty and not null and not whitespace onlypublic static boolean isBlank(CharSequence cs)
Checks if a CharSequence is empty (""), null or whitespace only.
StringUtils.isBlank(null) = true
StringUtils.isBlank("") = true
StringUtils.isBlank(" ") = true
StringUtils.isBlank("bob") = false
StringUtils.isBlank(" bob ") = false
Copyright © 2024 tan. All rights reserved.