Class StringListUtils

java.lang.Object
de.xima.fc.utils.StringListUtils

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

    • StringListUtils

      public StringListUtils()
  • Method Details

    • 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