Class MapHelper
java.lang.Object
org.palladiosimulator.commons.datastructureutils.MapHelper
Helper for coping with maps.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MapHelper
public MapHelper()
-
-
Method Details
-
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.
-