コード例 #1
0
  public void removeRecords(List<SummaryIntegratedDto> list) {

    List<SummarySingleDto> list2 = new ArrayList<SummarySingleDto>(list.size());
    for (SummaryIntegratedDto smd : list) {
      list2.addAll(smd.getSummarySingleDtoList());
    }

    for (SummarySingleDto metric : list2) {
      removeRecord(metric);
    }
  }
コード例 #2
0
  public void addMetricRecords(Map<MetricNode, SummaryIntegratedDto> loaded) {

    cache.putAll(loaded);

    List<SummarySingleDto> loadedSorted = new ArrayList<SummarySingleDto>();
    for (SummaryIntegratedDto summaryMetricDto : loaded.values()) {
      for (SummarySingleDto metricDto : summaryMetricDto.getSummarySingleDtoList()) {
        loadedSorted.add(metricDto);
      }
    }

    MetricRankingProvider.sortMetrics(loadedSorted);
    for (SummarySingleDto metricDto : loadedSorted) {
      addMetricRecord(metricDto);
    }
  }