Class StringListUtils


  • public class StringListUtils
    extends Object
    Simple index-based String list serialisation, does not support null values.
    • Constructor Detail

      • StringListUtils

        public StringListUtils()
    • Method Detail

      • serializeToString

        public static String serializeToString​(List<String> list)
        Serializes the passed list to a single string
        Parameters:
        list - the string list to be serialized
        Returns:
        the resulting string
      • deserializeToList

        public static List<String> deserializeToList​(String serializedStrings)
        Deserializes a string (which should be the result of a string list serialization) to a string list.
        Parameters:
        serializedStrings - the string to be deserialized
        Returns:
        the resulting string list