top.lingkang.sessioncore.utils.Assert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of final-session-core Show documentation
Show all versions of final-session-core Show documentation
final-session 一个轻量级分布式session框架
package top.lingkang.sessioncore.utils;
/**
* @author lingkang
* Created by 2022/1/26
*/
public class Assert {
public static void isTure(boolean obj,String message){
if (!obj){
throw new IllegalStateException(message);
}
}
public static void notNull(Object obj,String message){
if (obj==null){
throw new IllegalStateException(message);
}
}
}