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

io.probedock.client.common.utils.MetaDataBuilder Maven / Gradle / Ivy

The newest version!
package io.probedock.client.common.utils;

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

/**
 *
 * @author Laurent Prevost 
 */
public class MetaDataBuilder {
	private Map data = new HashMap<>();
	
	public MetaDataBuilder add(String name, String value) {
		data.put(name, value);
		return this;
	}
	
	public MetaDataBuilder add(MetaDataBuilder metaDataBuilder) {
		data.putAll(metaDataBuilder.data);
		return this;
	}
	
	public Map toMetaData() {
		return data;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy