Interface CollectionFormatter
-
- All Known Implementing Classes:
ExcelCollectionFormatter
public interface CollectionFormatterHandles collection format of elements that are being put to a single Excel cell.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Set<java.lang.String>formatToCollection(java.lang.String string)Extracts the collection from a single Excel cell to a collection.default java.lang.StringformatToString(java.lang.String... elements)By default converts the passed elements to collection and callsformatToString(Collection).java.lang.StringformatToString(java.util.Collection<java.lang.String> collection)Formats given collection to a string that can be put to a single Excel cell.
-
-
-
Method Detail
-
formatToString
default java.lang.String formatToString(@Nonnull java.lang.String... elements)By default converts the passed elements to collection and callsformatToString(Collection).- See Also:
formatToString(Collection)
-
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
-
-