java.lang.Object
org.palladiosimulator.commons.datastructureutils.MapHelper

public class MapHelper extends Object
Helper for coping with maps.
  • 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.