All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.puresoltechnologies.purifinity.server.domain.MetricsMapData Maven / Gradle / Ivy

The newest version!
package com.puresoltechnologies.purifinity.server.domain;

import java.util.HashMap;
import java.util.Map;

import com.puresoltechnologies.commons.domain.Value;
import com.puresoltechnologies.commons.misc.hash.HashId;

/**
 * This value object contains the data for a Metric Map. A metric map just needs
 * the {@link HashId} of the file system node and the list of values which are
 * associated with it. The values are a list because a file system node may
 * contain multiple value like file for different code ranges (methods,
 * classes,...).
 * 
 * @author Rick-Rainer Ludwig
 * 
 */
public class MetricsMapData {

	private final Map>> mapData = new HashMap<>();
	private final Map>> colorData = new HashMap<>();

	public MetricsMapData(
			Map>> mapValues,
			Map>> colorValues) {
		mapData.putAll(mapValues);
		colorData.putAll(colorValues);
	}

	public MetricsMapData() {
	}

	public Map> getMapValues(HashId hashId) {
		return mapData.get(hashId);
	}

	public Map> getColorValues(HashId hashId) {
		return colorData.get(hashId);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy