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 Detail

      • formatToString

        java.lang.String formatToString​(@Nonnull
                                        java.util.Collection<java.lang.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

        java.util.Set<java.lang.String> formatToCollection​(@Nonnull
                                                           java.lang.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