Package com.luna.common.check
Class PreconditionUtils
java.lang.Object
com.luna.common.check.PreconditionUtils
- Author:
- Luna
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
check
(boolean expression, RuntimeException baseException) 校验表达式是否正确static void
checkExpression
(boolean expression, String msg) static <T> T
checkNotNull
(T reference, String errorMessage) static <T> T
checkParamNotNull
(T reference)
-
Constructor Details
-
PreconditionUtils
public PreconditionUtils()
-
-
Method Details
-
check
校验表达式是否正确- Parameters:
baseException
- 异常
-
checkExpression
-
checkNotNull
-
checkParamNotNull
public static <T> T checkParamNotNull(T reference)
-