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

top.lingkang.sessioncore.utils.Assert Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy