类 Assert
java.lang.Object
cn.smallbun.screw.core.util.Assert
断言
- 作者:
- SanLi Created by qinggang.zuo@gmail.com / 2689170096@qq.com on 2020/3/30 22:18
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void断言 boolean 为 falsestatic void断言 object 为 nullstatic void断言 boolean 为 truestatic void断言 数组 不为 emptystatic void断言 value 不为 emptystatic voidnotEmpty(Collection<?> collection, String message, Object... params) 断言 collection 不为 emptystatic void断言 map 不为 emptystatic void断言 object 不为 null
-
构造器详细资料
-
Assert
public Assert()
-
-
方法详细资料
-
isTrue
断言 boolean 为 true为 false 则抛出异常
-
isFalse
断言 boolean 为 false为 true 则抛出异常
-
isNull
断言 object 为 null不为 null 则抛异常
-
notNull
断言 object 不为 null为 null 则抛异常
-
notEmpty
断言 value 不为 empty为 empty 则抛异常
-
notEmpty
断言 collection 不为 empty为 empty 则抛异常
- 参数:
collection-Collection集合message-String消息params-String参数
-
notEmpty
断言 map 不为 empty为 empty 则抛异常
-
notEmpty
断言 数组 不为 empty为 empty 则抛异常
-