Package at.willhaben.willtest.util
Class Environment
- java.lang.Object
-
- at.willhaben.willtest.util.Environment
-
public final class Environment extends java.lang.ObjectUsed to get a system property or environment variable.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetValue(java.lang.String key, java.lang.String defaultValue)Checks if the specified key is available in the system propertiesSystem.getProperty(String), environment variablesSystem.getenv(String)or takes the default value.
-
-
-
Method Detail
-
getValue
public static java.lang.String getValue(java.lang.String key, java.lang.String defaultValue)Checks if the specified key is available in the system propertiesSystem.getProperty(String), environment variablesSystem.getenv(String)or takes the default value. In this sequence.- Parameters:
key- Key or name of the propertydefaultValue- Value taken if nothing is available- Returns:
- The value of the system property, variable or the default value
-
-