cz.encircled.joiner.util.Assert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joiner-core Show documentation
Show all versions of joiner-core Show documentation
Joiner is a Java library which allows to create type-safe JPA queries.
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