Package io.keyko.common.helpers
Class StringsHelper
- java.lang.Object
-
- io.keyko.common.helpers.StringsHelper
-
public class StringsHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description StringsHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formUrl(String baseUrl, Map<String,Object> values)
Given a base url an the parameters form the final url.static List<String>
getStringsFromJoin(String joinedString)
Given a string with joined items by comma, return a list of items.static String
wrapWithQuotesAndJoin(List<String> listOfStrings)
Given a list of strings join all of them using quotes wrapping each item with quotes
-
-
-
Method Detail
-
wrapWithQuotesAndJoin
public static String wrapWithQuotesAndJoin(List<String> listOfStrings)
Given a list of strings join all of them using quotes wrapping each item with quotes- Parameters:
listOfStrings
- list of the strings- Returns:
- output string
-
getStringsFromJoin
public static List<String> getStringsFromJoin(String joinedString)
Given a string with joined items by comma, return a list of items. Each item will have replaced the double quoutes- Parameters:
joinedString
- the joined string- Returns:
- list of items
-
-