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