Class Utils

java.lang.Object
com.dtsx.astra.sdk.utils.Utils

public class Utils extends Object
Utilities
Author:
Cedrick LUNVEN (@clunven)
  • Method Details

    • hasLength

      public static boolean hasLength(String str)
      hasLength
      Parameters:
      str - String
      Returns:
      boolean
    • hasAllLength

      public static boolean hasAllLength(String... lStr)
      paramsProvided
      Parameters:
      lStr - String
      Returns:
      boolean
    • downloadFile

      public static void downloadFile(String urlStr, String file)
      downloadFile
      Parameters:
      urlStr - String
      file - String
    • readEnvVariable

      public static Optional<String> readEnvVariable(String key)
      Syntaxic sugar to read environment variables.
      Parameters:
      key - environment variable
      Returns:
      if the value is there