public class PropertiesUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getPropertiesFromResource(URL resource)
Returns the given properties resource on the project classpath if found or an empty properties object if not
|
static String |
getValueFromProperties(Properties properties,
String... keys)
Return first Non-Null set property from a set of provided properties
|
static Map<String,String> |
toMap(Properties properties)
Converts the provided Properties to a
Map<String, String> |
public static Properties getPropertiesFromResource(URL resource)
resource - resource urlpublic static String getValueFromProperties(Properties properties, String... keys)
properties - Properties in a given projectkeys - an array of property key values to findpublic static Map<String,String> toMap(Properties properties)
Map<String, String>properties - to convert to MapCopyright © 2023. All rights reserved.