wlzboy
17 小时以前 f08739f46afe856f60ebb1d21ab23d72947629ed
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
27
package com.ruoyi.common.utils;
 
import com.sun.org.apache.xpath.internal.operations.Bool;
 
public class IntegerUtil {
    public static Boolean isInteger(String str) {
        try {
            Integer.parseInt(str);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
 
    /**
     * 为空或小于0
     * @param integer
     * @return
     */
    public static Boolean isEmpty(Integer integer){
        return integer==null || integer<=0;
    }
 
    public static Boolean isNotEmpty(Integer integer){
        return !isEmpty(integer);
    }
}