J2SE-StringUtils

ZHOU_VIP發表於2018-05-18
public class StringUtilsBeta {
    public static boolean isNotNull(String str){
        //增加判斷字串null
        if(StringUtils.isNotEmpty(str) && !str.equals("null")){
            return true;
        }
        return false;
    }

    public static boolean listIsNotNull(List list){
        if(list != null &&  list.size() > 0  && !list.isEmpty()){
            return true;
        }
        return false;
    }
}