public class Strings extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
containsIgnoreCase(String value,
String regex)
忽略大小写包含
|
static Object[] |
each(String value,
String token,
Callable<Object> callable)
遍历操作
|
static Object[] |
each(StringTokenizer tokenizer,
Callable<Object> callable)
遍历操作
|
static String |
empty(String value)
空替换操作
|
static String |
empty(String value,
String def)
空替换操作
|
static boolean |
endWithIgnoreCase(String value,
String regex)
字符串结尾匹配
|
static String |
format(String message,
Object... args)
格式化操作
|
static boolean |
isEmpty(String value)
空字符串
|
static boolean |
isNotEmpty(String value)
非空字符串
|
static boolean |
matchsIgnoreCase(String value,
String regex)
忽略大小写匹配
|
static String |
replaceIgnoreCase(String value,
String regex)
忽略大小写替换
|
static String |
replaceIgnoreCase(String value,
String regex,
String content)
忽略大小写替换
|
static boolean |
startWithIgnoreCase(String value,
String regex)
字符串起始匹配
|
static String |
toLower(String value)
首字母小写
|
static String |
toUpper(String value)
首字母大写
|
public static boolean isEmpty(String value)
value - public static boolean isNotEmpty(String value)
value - public static boolean matchsIgnoreCase(String value, String regex)
value - regex - public static boolean containsIgnoreCase(String value, String regex)
value - regex - public static boolean startWithIgnoreCase(String value, String regex)
value - regex - public static boolean endWithIgnoreCase(String value, String regex)
value - regex - public static String replaceIgnoreCase(String value, String regex)
value - regex - public static String replaceIgnoreCase(String value, String regex, String content)
value - regex - content - public static Object[] each(String value, String token, Callable<Object> callable)
value - token - callable - public static Object[] each(StringTokenizer tokenizer, Callable<Object> callable)
tokenizer - callable - Copyright © 2016. All rights reserved.