Package org.apache.camel.converter
Class CollectionConverter
java.lang.Object
org.apache.camel.converter.CollectionConverter
Some core java.util Collection based Type Converters
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object[]
toArray
(Collection<?> value) Converts a collection to an arraystatic <T> ArrayList
<T> toArrayList
(Iterable<T> it) static <T> ArrayList
<T> toArrayList
(Iterator<T> it) static <K,
V> Collection <Map.Entry<K, V>> toCollection
(Map<K, V> map) static <K,
V> HashMap <K, V> static <K,
V> Hashtable <K, V> toHashtable
(Map<? extends K, ? extends V> map) static <T> List
<T> Converts an array to a collectionstatic <T> List
<T> toList
(Collection<T> collection) Converts a collection to a List if it is not alreadystatic <T> List
<T> static Properties
toProperties
(Map<Object, Object> map) static <T> Set
<T> toSet
(Collection<T> collection)
-
Method Details
-
toArray
Converts a collection to an array -
toList
Converts an array to a collection -
toList
Converts a collection to a List if it is not already -
toArrayList
-
toArrayList
-
toSet
-
toSet
-
toSet
-
toCollection
-
toProperties
-
toHashtable
-
toHashMap
-
toList
-
toList
-