io.probedock.client.common.utils.MetaDataBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of probe-dock-java Show documentation
Show all versions of probe-dock-java Show documentation
Base code to write Probe Dock clients in Java
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