Package com.ibm.cloud.sdk.core.util
Class EnvironmentUtils
- java.lang.Object
-
- com.ibm.cloud.sdk.core.util.EnvironmentUtils
-
public class EnvironmentUtils extends java.lang.Object
This is a utility class that contains methods related to environment variables.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String>
getenv()
Wrapper around System.getenv()) to allow us to mock it during testing.static java.lang.String
getenv(java.lang.String varname)
Wrapper around System.getenv(String) to allow us to mock it during testing.
-
-
-
Method Detail
-
getenv
public static java.lang.String getenv(java.lang.String varname)
Wrapper around System.getenv(String) to allow us to mock it during testing.- Parameters:
varname
- the name of the environment variable to retrieve- Returns:
- the value of the specified environment variable
-
getenv
public static java.util.Map<java.lang.String,java.lang.String> getenv()
Wrapper around System.getenv()) to allow us to mock it during testing.- Returns:
- a Map containing the current process' environment variables
-
-