|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.converter.CollectionConverter
public final class CollectionConverter
Some core java.util Collection based Type Converters
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 |
---|
public static Object[] toArray(Collection value)
public static List toList(Object[] array)
public static List toList(Collection collection)
public static ArrayList toArrayList(Iterator it)
Iterator
to a ArrayList
public static Set toSet(Object[] array)
public static Set toSet(Collection collection)
public static Set toSet(Map map)
public static Properties toProperties(Map map)
public static Hashtable toHashtable(Map map)
public static HashMap toHashMap(Map map)
public static List toList(Iterable iterable)
Iterable
into a List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |