public class CollectionConverter extends Object implements TwoWayConverter<String,Collection>
| Constructor and Description |
|---|
CollectionConverter(ConversionService conversionService,
Class<? extends Collection> defaultImplClass) |
| Modifier and Type | Method and Description |
|---|---|
Converter<String,Collection> |
getDirect()
Returns converter from SrcType to DstType
|
Converter<Collection,String> |
getReverse()
Returns converter from DstType to SrcType
|
protected Collection |
newInstance() |
static String[] |
parseCollection(String value)
Parse string value of format "
|
void |
setConversionService(ConversionService conversionService) |
public CollectionConverter(ConversionService conversionService, Class<? extends Collection> defaultImplClass)
protected Collection newInstance() throws Exception
Exceptionpublic Converter<Collection,String> getReverse()
TwoWayConvertergetReverse in interface TwoWayConverter<String,Collection>public Converter<String,Collection> getDirect()
TwoWayConvertergetDirect in interface TwoWayConverter<String,Collection>public static String[] parseCollection(String value)
value - string valuepublic void setConversionService(ConversionService conversionService)
Copyright © 2016. All rights reserved.