public final class CollectionUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Object |
convertListToArray(List<T> list,
Class<T> destEntryType) |
static List<Object> |
convertPrimitiveArrayToList(Object primitiveArray) |
static <T extends Set<?>> |
createNewSet(Class<T> destType) |
static <T extends Set<?>> |
createNewSet(Class<T> destSetType,
Collection<?> srcValue) |
static int |
getLengthOfCollection(Object value) |
static Object |
getValueFromCollection(Object collection,
int index) |
static <E> Set<E> |
intersection(Set<E> set1,
Set<?> set2) |
static boolean |
isArray(Class<?> aClass) |
static boolean |
isCollection(Class<?> aClass) |
static boolean |
isList(Class<?> aClass) |
static boolean |
isPrimitiveArray(Class<?> aClass) |
static boolean |
isSet(Class<?> aClass) |
public static boolean isArray(Class<?> aClass)
public static boolean isCollection(Class<?> aClass)
public static boolean isList(Class<?> aClass)
public static boolean isSet(Class<?> aClass)
public static boolean isPrimitiveArray(Class<?> aClass)
public static int getLengthOfCollection(Object value)
public static <T extends Set<?>> Set<?> createNewSet(Class<T> destSetType, Collection<?> srcValue)
public static <T> Object convertListToArray(List<T> list, Class<T> destEntryType)
public static List<Object> convertPrimitiveArrayToList(Object primitiveArray)
Copyright © 2005-2014 dozer. All Rights Reserved.