Class MeasureResult


  • public class MeasureResult
    extends Object
    • Constructor Detail

      • MeasureResult

        public MeasureResult()
    • Method Detail

      • put

        public void put​(String key,
                        Object value)
        add an individual data item
        Parameters:
        key - the metric
        value - the value
      • putSet

        public void putSet​(String key,
                           Set<?> set)
        Parameters:
        key - the metric
        set - the value (a set of Objects)
      • putMap

        public void putMap​(String key,
                           Map<String,​?> data)
        Parameters:
        key - the metric
        data - the value (a map of Key-Value pairs)
      • getData

        public Map<String,​Object> getData()
        Returns:
        get the current simple data
      • getListData

        public Map<String,​List<Object>> getListData()
        Returns:
        all the data that is in list form
      • isEmpty

        public boolean isEmpty()
        Returns:
        true if there are no results in this object, otherwise false
      • getSimpleMetricValue

        public Object getSimpleMetricValue​(String key)
        Parameters:
        key - the metric
        Returns:
        the value recorded for that metric (only simple metrics)
      • importMetrics

        public void importMetrics​(MeasureResult data)
        Parameters:
        data - to be imported