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 Summary
Modifier and TypeMethodDescriptionformatToCollection(String string) Extracts the collection from a single Excel cell to a collection.default StringformatToString(String... elements) By default converts the passed elements to collection and callsformatToString(Collection).formatToString(Collection<String> collection) Formats given collection to a string that can be put to a single Excel cell.
-
Method Details
-
formatToString
By default converts the passed elements to collection and callsformatToString(Collection).- See Also:
-
formatToString
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
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
-