public class StringUtils extends Object
| 构造器和说明 |
|---|
StringUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
firstLower(String str)
将输入的字符串的首字母变成小写
|
static String |
firstUpper(String str)
将输入的字符串的首字母变成大写
|
static boolean |
isBlank(String str)
判断字符串是否为空值
|
static boolean |
isNotBlank(String str)
判断字符串是否为非空值
|
static String |
removeBefore(String content,
String toRemove)
将前面的删除
|
static String |
removeBeforeAndEnd(String content,
String toRemove)
将前后的某字符删除
|
static String |
removeEnd(String content,
String toRemove)
将后面的删除
|
public static String firstUpper(String str)
str - 输入的字符串public static String firstLower(String str)
str - 输入的字符串public static String removeEnd(String content, String toRemove)
content - toRemove - public static String removeBefore(String content, String toRemove)
content - toRemove - public static String removeBeforeAndEnd(String content, String toRemove)
content - toRemove - public static boolean isBlank(String str)
str - public static boolean isNotBlank(String str)
str - Copyright © 2019. All rights reserved.