de.dagere.kopeme.datastorage.ParamNameHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kopeme-core Show documentation
Show all versions of kopeme-core Show documentation
KoPeMe performance testing core
package de.dagere.kopeme.datastorage;
import java.util.LinkedHashMap;
import java.util.Map;
public class ParamNameHelper {
public static final String PARAM_VALUE_SEPARATOR = "-";
public static String paramsToString(final LinkedHashMap parameters) {
String result;
if (parameters != null) {
result = "";
for (Map.Entry param : parameters.entrySet()) {
result += param.getKey() + PARAM_VALUE_SEPARATOR + param.getValue() + " ";
}
result = result.substring(0, result.length() - 1);
} else {
result = null;
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy