Class ListSplitter


  • public class ListSplitter
    extends Object
    • Constructor Detail

      • ListSplitter

        public ListSplitter()
    • Method Detail

      • split

        public static String[] split​(String valueList)
      • split

        public static String[] split​(String quoteCharacter,
                                     boolean trim,
                                     String valueList)
        Parameters:
        quoteCharacter - Character used to surround the items in the list.
        trim - If true string values between , will be trimmed. If false the spaces are included.
        valueList - Comma separated list of items.
        Returns:
        An array of String items.
      • splitPreserveQuotes

        public static String[] splitPreserveQuotes​(String quoteCharacter,
                                                   boolean trim,
                                                   String valueList)