Pu Zhibing
2025-02-19 8f45afced0c6a4085560c62dbd58e6ef0f4cecf4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.ruoyi.web.tool;
 
/**
 * 字符串工具类
 */
public class StringUtils {
 
 
    /**
     * 空字符串
     * @param str
     * @return
     */
    public static boolean isEmpty(String str){
        return null == str || "".equals(str);
    }
 
    /**
     * 非空字符串
     * @param str
     * @return
     */
    public static boolean isNotEmpty(String str){
        return !isEmpty(str);
    }
}