public class StringUtil extends Object
| 构造器和说明 |
|---|
StringUtil()
StringUtil constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
defaultString(String str)
String default content.
|
static String |
firstCharToLowerCase(String str)
The first letter is lowercase.
|
static String |
firstCharToUpperCase(String str)
Capitalize the first letter.
|
static int |
getSubStrCount(String originalStr,
String subStr)
Gets the number of substrings.
|
static boolean |
isBlank(String str)
The string is empty.
|
static Object |
minusOne(String str)
get str.
|
static boolean |
notBlank(String... strings)
The string is not empty.
|
static boolean |
notBlank(String str)
The string is not empty.
|
static boolean |
notNull(Object... paras)
The string is not null.
|
static String |
nvl(Object o)
The string is a null character.
|
static String |
nvl(String string)
The string is a null character.
|
static String |
nvl(String string,
String string2)
The string is a null character.
|
static List<String> |
toList(String str,
int len)
String to array.
|
static String |
toSelectStr(List resultList,
String key,
String value)
String query.
|
static String |
toString(Object object)
String formatting.
|
static String |
toStringBySeparator(List<Map> list,
String separator,
String key)
String splitting.
|
public static int getSubStrCount(String originalStr, String subStr)
originalStr - not blanksubStr - not blankpublic static String toSelectStr(List resultList, String key, String value)
resultList - not blankkey - not blankvalue - not blankpublic static String toString(Object object)
object - not blankpublic static String firstCharToLowerCase(String str)
str - not blankpublic static String firstCharToUpperCase(String str)
str - not blankpublic static boolean isBlank(String str)
str - not blankpublic static boolean notBlank(String str)
str - not blankpublic static boolean notBlank(String... strings)
strings - not blankpublic static boolean notNull(Object... paras)
paras - not blankpublic static String nvl(String string)
string - not blankpublic static String nvl(String string, String string2)
string - not blankstring2 - not blankpublic static String toStringBySeparator(List<Map> list, String separator, String key)
list - not blankseparator - not blankkey - not blankpublic static String defaultString(String str)
str - not blankCopyright © 2020. All rights reserved.