aQute.bnd.build.model.conversions
Class CollectionFormatter<T>

java.lang.Object
  extended by 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
CollectionFormatter(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, String prefix, String suffix)
           
CollectionFormatter(String separator, String emptyOutput)
           
 
Method Summary
 String convert(Collection<? extends T> input)
           
 String error(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionFormatter

public CollectionFormatter(String separator)

CollectionFormatter

public CollectionFormatter(String separator,
                           String emptyOutput)

CollectionFormatter

public CollectionFormatter(String separator,
                           Converter<String,? super T> itemFormatter)

CollectionFormatter

public CollectionFormatter(String separator,
                           Converter<String,? super T> itemFormatter,
                           String emptyOutput)

CollectionFormatter

public CollectionFormatter(String separator,
                           Converter<String,? super T> itemFormatter,
                           String emptyOutput,
                           String prefix,
                           String suffix)
Method Detail

convert

public String convert(Collection<? extends T> input)
               throws IllegalArgumentException
Specified by:
convert in interface Converter<String,Collection<? extends T>>
Throws:
IllegalArgumentException

error

public String error(String msg)
Specified by:
error in interface Converter<String,Collection<? extends T>>


Copyright © 2014 aQute SARL. All rights reserved.