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

de.dagere.kopeme.datastorage.ParamNameHelper Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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