Package com.dtsx.astra.sdk.utils
Class Utils
java.lang.Object
com.dtsx.astra.sdk.utils.Utils
Utilities
- Author:
- Cedrick LUNVEN (@clunven)
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
downloadFile
(String urlStr, String file) downloadFilestatic boolean
hasAllLength
(String... lStr) paramsProvidedstatic boolean
hasLengthreadEnvVariable
(String key) Syntaxic sugar to read environment variables.
-
Method Details
-
hasLength
hasLength- Parameters:
str
- String- Returns:
- boolean
-
hasAllLength
paramsProvided- Parameters:
lStr
- String- Returns:
- boolean
-
downloadFile
downloadFile- Parameters:
urlStr
- Stringfile
- String
-
readEnvVariable
Syntaxic sugar to read environment variables.- Parameters:
key
- environment variable- Returns:
- if the value is there
-