All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.base4j.mybatis.tool.NullUtil Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package com.base4j.mybatis.tool;

/**
 * Created by panlc on 2017-03-23.
 */
public class NullUtil {

    private NullUtil() {
    }

    public static final boolean isNull(Object obj) {
        return null == obj;
    }

    public static final boolean isNotNull(Object obj) {
        return null != obj;
    }

    public static final boolean isEmpty(Object obj) {
        return null == obj || "".equals(obj);
    }

    public static final boolean isNotEmpty(Object obj) {
        return null != obj && !"".equals(obj);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy