org.apache.camel.converter
Class CollectionConverter

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

public final class CollectionConverter
extends Object

Some core java.util Collection based Type Converters

Version:
$Revision: 693382 $

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

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


toList

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


toList

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


toArrayList

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


toSet

public static Set toSet(Object[] array)

toSet

public static Set toSet(Collection collection)

toSet

public static Set toSet(Map map)

toProperties

public static Properties toProperties(Map map)

toHashtable

public static Hashtable toHashtable(Map map)

toHashMap

public static HashMap toHashMap(Map map)

toList

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



Copyright © 2009 Apache Software Foundation. All Rights Reserved.