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

com.power.common.util.Assert Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package com.power.common.util;

import com.power.common.exception.AssertException;

/**
 * @author yu 2019/11/1.
 */
public class Assert {

    /**
     * Assert null
     *
     * @param object  object
     * @param message message
     * @param args    args
     */
    public static void notNull(Object object, String message, Object... args) {
        if (object == null) {
            throw new AssertException(String.format(message, args));
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy