|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.util.CollectionConverterFactory
public class CollectionConverterFactory
Converts among arrays and different collection classes.
THe following conversions are supported:
Field Summary | |
---|---|
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 |
Fields inherited from interface org.geotools.util.ConverterFactory |
---|
SAFE_CONVERSION |
Constructor Summary | |
---|---|
CollectionConverterFactory()
|
Method Summary | |
---|---|
Converter |
createConverter(java.lang.Class source,
java.lang.Class target,
Hints hints)
Creates a Converter instance for converting one type
of object to another. |
protected static java.util.Collection |
newCollection(java.lang.Class target)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Converter CollectionToCollection
protected static final Converter CollectionToArray
protected static final Converter ArrayToCollection
protected static final Converter ArrayToArray
Constructor Detail |
---|
public CollectionConverterFactory()
Method Detail |
---|
protected static java.util.Collection newCollection(java.lang.Class target) throws java.lang.Exception
java.lang.Exception
public Converter createConverter(java.lang.Class source, java.lang.Class target, Hints hints)
ConverterFactory
Converter
instance for converting one type
of object to another.
createConverter
in interface ConverterFactory
source
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |