Interface CollectionFormatter

All Known Implementing Classes:
ExcelCollectionFormatter

public interface CollectionFormatter
Handles collection format of elements that are being put to a single Excel cell.
  • Method Details

    • formatToString

      default String formatToString(@Nonnull String... elements)
      By default converts the passed elements to collection and calls formatToString(Collection).
      See Also:
    • formatToString

      String formatToString(@Nonnull Collection<String> collection)
      Formats given collection to a string that can be put to a single Excel cell.
      Parameters:
      collection - of elements that are intended to be put in a single Excel cell
      Returns:
      collection representation ready to be put to a single Excel cell
    • formatToCollection

      Set<String> formatToCollection(@Nonnull String string)
      Extracts the collection from a single Excel cell to a collection.
      Parameters:
      string - formatted collection from a single Excel cell
      Returns:
      collection of extracted elements