win.hupubao.common.utils.Assert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hupubao-common Show documentation
Show all versions of hupubao-common Show documentation
简单封装公共工具,二维码工具,驼峰转换工具,des加解密工具,http访问工具,字符串工具,日期工具
package win.hupubao.common.utils;
/**
* @author Moses
* @date 2017-08-24
*/
public class Assert {
public static void notNull(Object object, String message) {
if (object == null) {
throw new IllegalArgumentException(message);
}
}
public static void hasText(Object object, String message) {
if (StringUtils.isBlank(object)) {
throw new IllegalArgumentException(message);
}
}
public static void equals(Object obj1, Object obj2, String message) {
if (!obj1.equals(obj2)) {
throw new IllegalArgumentException(message);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy