类 Assert
java.lang.Object
xyz.raylab.support.util.Assert
非法参数时,抛出RuntimeException的派生类。不指定exceptionClass时,默认抛出BoundsContextException
- 作者:
- ray_kwan
-
方法概要
修饰符和类型方法说明static voidstatic <T extends RuntimeException>
voidstatic voidstatic <T extends RuntimeException>
voidstatic voidnotEmpty(Collection<?> collection, String message) static <T extends RuntimeException>
voidnotEmpty(Collection<?> collection, String message, Class<T> exceptionClass) static voidstatic <T extends RuntimeException>
voidstatic voidstatic <T extends RuntimeException>
void
-
方法详细资料
-
isTrue
-
isTrue
public static <T extends RuntimeException> void isTrue(boolean expression, String message, Class<T> exceptionClass) -
notNull
-
notNull
public static <T extends RuntimeException> void notNull(Object object, String message, Class<T> exceptionClass) -
hasText
-
hasText
public static <T extends RuntimeException> void hasText(String text, String message, Class<T> exceptionClass) -
notEmpty
-
notEmpty
public static <T extends RuntimeException> void notEmpty(Collection<?> collection, String message, Class<T> exceptionClass) -
notEmpty
-
notEmpty
public static <T extends RuntimeException> void notEmpty(Map<?, ?> map, String message, Class<T> exceptionClass)
-