com.github.yuyenews.concurrent.util.StringUtils Maven / Gradle / Ivy
The newest version!
package com.github.yuyenews.concurrent.util;
/**
* 字符串工具类
*/
public class StringUtils {
/**
* 判断是否为空
* @param s
* @return
*/
public static boolean isEmpty(String s){
if(s == null || s.trim().equals("")){
return true;
}
return false;
}
/**
* 判断是否不为空
* @param s
* @return
*/
public static boolean isNotEmpty(String s){
return isEmpty(s) == false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy