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 Integer |
getInteger(Properties properties,
String key) |
static Integer |
getInteger(Properties properties,
String key,
Integer defaultValue) |
static int |
getIntegerValue(Map<String,String> map,
String key,
int defaultValue) |
static int |
getIntegerValue(Properties properties,
String key,
int defaultValue) |
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 Integer getInteger(Properties properties, String key)
public static Integer getInteger(Properties properties, String key, Integer defaultValue)
public static int getIntegerValue(Properties properties, String key, int defaultValue)
public static int getIntegerValue(Map<String,String> map, String key, int 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–2016 Red Hat. All rights reserved.