Class StringsHelper


  • public class StringsHelper
    extends Object
    • Constructor Detail

      • StringsHelper

        public StringsHelper()
    • 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
      • formUrl

        public static String formUrl​(String baseUrl,
                                     Map<String,​Object> values)
        Given a base url an the parameters form the final url.
        Parameters:
        baseUrl - input base url.
        values - map with key values to replace in the string
        Returns:
        output string with the variables replaced