Class CollectionFormatter<T>
java.lang.Object
aQute.bnd.build.model.conversions.CollectionFormatter<T>
- All Implemented Interfaces:
Converter<String,Collection<? extends T>>
public class CollectionFormatter<T>
extends Object
implements Converter<String,Collection<? extends T>>
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionFormatter(String separator) CollectionFormatter(String separator, Converter<String, ? super T> itemFormatter) CollectionFormatter(String separator, Converter<String, ? super T> itemFormatter, String emptyOutput) CollectionFormatter(String separator, Converter<String, ? super T> itemFormatter, String emptyOutput, boolean leadingSpace, String prefix, String suffix) CollectionFormatter(String separator, Converter<String, ? super T> itemFormatter, String emptyOutput, String prefix, String suffix) CollectionFormatter(String separator, String emptyOutput) -
Method Summary
-
Constructor Details
-
CollectionFormatter
-
CollectionFormatter
-
CollectionFormatter
-
CollectionFormatter
-
CollectionFormatter
-
CollectionFormatter
public CollectionFormatter(String separator, Converter<String, ? super T> itemFormatter, String emptyOutput, boolean leadingSpace, String prefix, String suffix) - Parameters:
separator- Separator between itemsitemFormatter- Formatter for each itememptyOutput- Output to produce for empty inputsleadingSpace- Whether to lead with a space before the first itemprefix- Prefix for the first item in lists containing more than one items.suffix- Suffix to add at the end of the list
-
-
Method Details
-
convert
- Specified by:
convertin interfaceConverter<String,Collection<? extends T>> - Throws:
IllegalArgumentException
-
error
- Specified by:
errorin interfaceConverter<String,Collection<? extends T>>
-