/**
* 字符串辅助工具类
*
* @author Caos
*/
public class StrUitl {
/**
* @Description: 判断是否为空
* @param str : 字符串
* @return
*/
public static boolean isBlank(String str) {
return null == str || "".equals(str.trim());
}
/**
* @Description: 判断数组元素是否包含空
* @param strings 数组
* @return
*/
public static boolean hasBlank(String...strings) {
if (null != strings && 0 != strings.length) {
for (String str : strings) {
if(isBlank(str)) {
return true;
}
}
return false;
}
return true;
}
}