public Map<Point, UntypedMetric> getMapForMetric(String metricName) {
        Map<Point, UntypedMetric> result = new HashMap<>();
        for (Map.Entry<Identifier, UntypedMetric> entry : values.entrySet()) {
            if (metricName.equals(entry.getKey().getName())) {
                result.put(entry.getKey().getLocation(), entry.getValue());
            }
        }
        return result;
    }
An aggregation of data which is only written to from a single thread.

@author Steinar Knutsen
container-core/src/main/java/com/yahoo/metrics/simple/Bucket.java