public class PropertiesHelper extends Object
Constructor and Description |
---|
PropertiesHelper() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
findPropertiesWithPrefix(Properties properties,
String prefix)
Returns the map of entries in the properties object which have keys starting with the given prefix, removing the prefix
from the returned map.
|
static Map<String,String> |
findPropertiesWithPrefix(Properties properties,
String prefix,
Function<String,String> keyTransformer)
Returns the map of entries in the properties object which have keys starting with the given prefix, removing the prefix
from the returned map.
|
static Long |
getLong(Properties properties,
String key) |
static Long |
getLong(Properties properties,
String key,
Long defaultValue) |
static long |
getLongValue(Map<String,String> map,
String key,
long defaultValue) |
static long |
getLongValue(Properties properties,
String key,
long defaultValue) |
static Map<String,String> |
toMap(Properties properties)
Returns a Map for the given Properties object
|
public static Long getLong(Properties properties, String key)
public static Long getLong(Properties properties, String key, Long defaultValue)
public static long getLongValue(Properties properties, String key, long defaultValue)
public static Map<String,String> findPropertiesWithPrefix(Properties properties, String prefix)
public static Map<String,String> findPropertiesWithPrefix(Properties properties, String prefix, Function<String,String> keyTransformer)
public static Map<String,String> toMap(Properties properties)
Copyright © 2011–2015 Red Hat. All rights reserved.