Package com.dtsx.astra.sdk.utils
Class Assert
java.lang.Object
com.dtsx.astra.sdk.utils.Assert
Syntaxic sugar for common validations.
- Author:
- Cedrick LUNVEN (@clunven)
-
Method Summary
-
Method Details
-
hasLength
Input string should not be empty.- Parameters:
s
- string valuename
- param name
-
notNull
Input object should not be null- Parameters:
o
- object valuename
- param name
-
isTrue
Check condition at start.- Parameters:
b
- predicate should be truemsg
- error message
-