Constructor and Description |
---|
OSGiUtil() |
Modifier and Type | Method and Description |
---|---|
static HashMap<String,String> |
convertDictionaryToHashMap(Dictionary<?,?> input)
Convert dictionary to hash map.
|
static Properties |
convertDictionaryToProperties(Dictionary<?,?> input)
Convert dictionary to properties.
|
static Dictionary<String,Object> |
convertHashMapToDictionary(HashMap<?,?> input)
Convert hash map to dictionary.
|
static Properties |
convertHashMapToProperties(HashMap<?,?> input)
Convert hash map to properties.
|
static HashMap<String,String> |
filterProperties(HashMap<String,String> properties,
String[] keySet)
Filter properties.
|
static Properties |
filterProperties(Properties properties,
String[] keySet)
Filter properties.
|
static String[] |
getEnumValues(Class<? extends Enum<?>> e)
Gets the enum values.
|
public OSGiUtil()
public static Dictionary<String,Object> convertHashMapToDictionary(HashMap<?,?> input)
input
- the inputpublic static Properties convertHashMapToProperties(HashMap<?,?> input)
input
- the inputpublic static HashMap<String,String> convertDictionaryToHashMap(Dictionary<?,?> input)
input
- the inputpublic static Properties convertDictionaryToProperties(Dictionary<?,?> input)
input
- the inputpublic static String[] getEnumValues(Class<? extends Enum<?>> e)
e
- the epublic static HashMap<String,String> filterProperties(HashMap<String,String> properties, String[] keySet)
properties
- the propertieskeySet
- the key setpublic static Properties filterProperties(Properties properties, String[] keySet)
properties
- the propertieskeySet
- the key setCopyright © 2013-2016 Loetz GmbH&Co.KG - Heidelberg - Germany, Eclipse OSBP Project, OS.bee