Class MapHelper
- java.lang.Object
-
- org.palladiosimulator.commons.datastructureutils.MapHelper
-
public class MapHelper extends Object
Helper for coping with maps.
-
-
Constructor Summary
Constructors Constructor Description MapHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <DATA_TYPE>
DATA_TYPEgetValue(Map<String,Object> map, String key, Class<DATA_TYPE> dataTypeClass)
Convenience method for getting a certain attribute from a given map.
-
-
-
Method Detail
-
getValue
public static <DATA_TYPE> DATA_TYPE getValue(Map<String,Object> map, String key, Class<DATA_TYPE> dataTypeClass)
Convenience method for getting a certain attribute from a given map.- Type Parameters:
DATA_TYPE
- the data type of the value.- Parameters:
map
- the map to be investigated.key
- the key to look for.dataTypeClass
- the data type class of the value to look for.- Returns:
- the value to look for.
-
-