org.apache.camel.converter
Class CollectionConverter

java.lang.Object
  extended by org.apache.camel.converter.CollectionConverter

@Converter
public final class CollectionConverter
extends Object

Some core java.util Collection based Type Converters

Version:
$Revision: 747062 $

Method Summary
static Object[] toArray(Collection value)
          Converts a collection to an array
static ArrayList toArrayList(Iterator it)
          Converts an Iterator to a ArrayList
static HashMap toHashMap(Map map)
           
static Hashtable toHashtable(Map map)
           
static List toList(Collection collection)
          Converts a collection to a List if it is not already
static List toList(Iterable iterable)
          Converts an Iterable into a List
static List toList(Object[] array)
          Converts an array to a collection
static Properties toProperties(Map map)
           
static Set toSet(Collection collection)
           
static Set toSet(Map map)
           
static Set toSet(Object[] array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toArray

@Converter
public static Object[] toArray(Collection value)
Converts a collection to an array


toList

@Converter
public static List toList(Object[] array)
Converts an array to a collection


toList

@Converter
public static List toList(Collection collection)
Converts a collection to a List if it is not already


toArrayList

@Converter
public static ArrayList toArrayList(Iterator it)
Converts an Iterator to a ArrayList


toSet

@Converter
public static Set toSet(Object[] array)

toSet

@Converter
public static Set toSet(Collection collection)

toSet

@Converter
public static Set toSet(Map map)

toProperties

@Converter
public static Properties toProperties(Map map)

toHashtable

@Converter
public static Hashtable toHashtable(Map map)

toHashMap

@Converter
public static HashMap toHashMap(Map map)

toList

@Converter
public static List toList(Iterable iterable)
Converts an Iterable into a List



Apache CAMEL