public class CollectionConverterFactory extends Object implements ConverterFactory
THe following conversions are supported:
| Modifier and Type | Field and Description |
|---|---|
protected static Converter |
ArrayToArray
Converter for array to array.
|
protected static Converter |
ArrayToCollection
Converter for array to collection.
|
protected static Converter |
CollectionToArray
Converter for collection to array.
|
protected static Converter |
CollectionToCollection
Converter for collection to collection
|
SAFE_CONVERSION| Constructor and Description |
|---|
CollectionConverterFactory() |
| Modifier and Type | Method and Description |
|---|---|
Converter |
createConverter(Class<?> source,
Class<?> target,
Hints hints)
Creates a
Converter instance for converting one type of object to another. |
protected static Collection<Object> |
newCollection(Class target) |
protected static final Converter CollectionToCollection
protected static final Converter CollectionToArray
protected static final Converter ArrayToCollection
protected static final Converter ArrayToArray
protected static Collection<Object> newCollection(Class target) throws Exception
Exceptionpublic Converter createConverter(Class<?> source, Class<?> target, Hints hints)
ConverterFactoryConverter instance for converting one type of object to another.createConverter in interface ConverterFactorysource - The type to convert from.target - The type to convert to.hints - Hints used to be used while creating a converter.null if one could not be found.Copyright © 1996–2021 Geotools. All rights reserved.