This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> T | |
| public static String | |
| public static String | normalizeEnvironmentVariableKey(String key)
Normalize an environment variable key by converting to lower case and replacing "_" with ".". |
| public static String | normalizePropertyKey(String key)
Normalize a property key by converting to lower case and replacing "-" with ".". |
| public static Properties |
| ConfigUtil | back to summary |
|---|---|
| private ConfigUtil() | |
| defaultIfNull | back to summary |
|---|---|
| public static <T> T defaultIfNull(T value, T defaultValue) Returns defaultValue if value is null, otherwise value. This is an internal method. | |
| getString | back to summary |
|---|---|
| public static String getString(String key, String defaultValue) Return the system property or environment variable for the Normalize the | |
| normalizeEnvironmentVariableKey | back to summary |
|---|---|
| public static String normalizeEnvironmentVariableKey(String key) Normalize an environment variable key by converting to lower case and replacing "_" with ".". | |
| normalizePropertyKey | back to summary |
|---|---|
| public static String normalizePropertyKey(String key) Normalize a property key by converting to lower case and replacing "-" with ".". | |
| safeSystemProperties | back to summary |
|---|---|
| public static Properties safeSystemProperties() Returns a copy of system properties which is safe to iterate over. In java 8 and android environments, iterating through system properties may trigger | |