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

cz.encircled.joiner.util.Assert Maven / Gradle / Ivy

There is a newer version: 1.22
Show newest version
package cz.encircled.joiner.util;

/**
 * Assert util methods
 *
 * @author Vlad on 14-Aug-16.
 */
public class Assert {

    public static void notNull(Object object) {
        if (object == null) {
            throw new IllegalArgumentException("Argument must be not null!");
        }
    }

    public static void assertThat(boolean predicate) {
        if (!predicate) {
            throw new IllegalArgumentException("Predicate must be true!");
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy