|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.converter.CollectionConverter
@Converter 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
|
toArrayList(Iterator<T> it)
Converts an Iterator to a ArrayList |
|
static
|
toHashMap(Map<? extends K,? extends V> map)
|
|
static
|
toHashtable(Map<? extends K,? extends V> map)
|
|
static
|
toList(Collection<T> collection)
Converts a collection to a List if it is not already |
|
static
|
toList(Iterable<T> iterable)
Converts an Iterable into a List |
|
static List<Object> |
toList(Object[] array)
Converts an array to a collection |
|
static Properties |
toProperties(Map<Object,Object> map)
|
|
static
|
toSet(Collection<T> collection)
|
|
static
|
toSet(Map<K,V> map)
|
|
static Set<Object> |
toSet(Object[] array)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@Converter public static Object[] toArray(Collection<?> value)
@Converter public static List<Object> toList(Object[] array)
@Converter public static <T> List<T> toList(Collection<T> collection)
@Converter public static <T> ArrayList<T> toArrayList(Iterator<T> it)
Iterator to a ArrayList
@Converter public static Set<Object> toSet(Object[] array)
@Converter public static <T> Set<T> toSet(Collection<T> collection)
@Converter public static <K,V> Set<Map.Entry<K,V>> toSet(Map<K,V> map)
@Converter public static Properties toProperties(Map<Object,Object> map)
@Converter public static <K,V> Hashtable<K,V> toHashtable(Map<? extends K,? extends V> map)
@Converter public static <K,V> HashMap<K,V> toHashMap(Map<? extends K,? extends V> map)
@Converter public static <T> List<T> toList(Iterable<T> iterable)
Iterable into a List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||