public class StrUtils extends Object
判断是否有空的 对象 实体 集合类
| 构造器和说明 |
|---|
StrUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
achieveGetFunction(String name)
获取get + name -- getName
|
static String |
achieveSetFunction(String name)
获取set + name-- setName
|
static String |
capsHead(String name)
首字母大写
|
static String |
humpToLine(String str)
驼峰转下划线,效率比上面高
|
static boolean |
isEquals(String names,
String name) |
static Boolean |
isNbE(String... strs)
全都是 "" 或" "或 null 返回 true 原名:isNullButEmpty
|
static Boolean |
isNNbE(String... strs)
存在一个是 "" 或" "或 null 返回 true 原名:isNotNullButEmpty
|
static Boolean |
isNNoE(String... strs)
不存在 "" 或" "或 null 返回 true 原名:isNotNullOrEmpty
存在一个是 "" 或" "或 null 返回 false
|
static <E> Boolean |
isNNoEC(Collection<E>... collections)
全部不是 null 或size=0 返回 true 原名:isNotNullOrEmptyCollections
存在一个是 null 或size=0 返回 false
|
static <E> Boolean |
isNNoEE(E... e)
e 存在一个是 null 返回 flase 原名:isNotNullOrEmptyEntrty
e 全都不是 null 返回 true
|
static Boolean |
isNoE(String... strs)
存在一个是 "" 或" "或 null 返回 true 原名:isNullOrEmpty
|
static <E> Boolean |
isNoEC(Collection<E>... collections)
存在一个是 null 或size 为0 返回 true 原名:isNullOrEmptyCollections
|
static <E> Boolean |
isNoEE(E... e)
t 存在一个是 null 返回 true 原名:isNullOrEmptyEntrty
|
static String |
lowerCase(String name)
首字母小写
|
static Map |
map(Object... args)
简化创建Map
|
static <E> String |
splicingObjectName(E... e)
拼接对象名称
|
static <E> String |
splicingObjectName(String mark,
E... e)
拼接对象名称
|
public static Boolean isNoE(String... strs)
存在一个是 "" 或" "或 null 返回 true 原名:isNullOrEmpty
strs - strspublic static Boolean isNNoE(String... strs)
不存在 "" 或" "或 null 返回 true 原名:isNotNullOrEmpty
存在一个是 "" 或" "或 null 返回 false
strs - strspublic static Boolean isNbE(String... strs)
全都是 "" 或" "或 null 返回 true 原名:isNullButEmpty
strs - strspublic static Boolean isNNbE(String... strs)
存在一个是 "" 或" "或 null 返回 true 原名:isNotNullButEmpty
strs - strspublic static <E> Boolean isNoEC(Collection<E>... collections)
存在一个是 null 或size 为0 返回 true 原名:isNullOrEmptyCollections
E - ecollections - collectionspublic static <E> Boolean isNNoEC(Collection<E>... collections)
全部不是 null 或size=0 返回 true 原名:isNotNullOrEmptyCollections
存在一个是 null 或size=0 返回 false
E - ecollections - collectionspublic static <E> Boolean isNoEE(E... e)
t 存在一个是 null 返回 true 原名:isNullOrEmptyEntrty
E - ee - epublic static <E> Boolean isNNoEE(E... e)
e 存在一个是 null 返回 flase 原名:isNotNullOrEmptyEntrty e 全都不是 null 返回 true
E - ee - epublic static String achieveSetFunction(String name)
获取set + name-- setName
name - Stringpublic static String achieveGetFunction(String name)
获取get + name -- getName
name - Stringpublic static <E> String splicingObjectName(E... e)
拼接对象名称
E - ee - epublic static <E> String splicingObjectName(String mark, E... e)
拼接对象名称
E - emark - ee - eCopyright © 2019. All rights reserved.