Class CollectionUtils
- java.lang.Object
-
- org.wicketstuff.rest.utils.collection.CollectionUtils
-
public class CollectionUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description CollectionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,E extends T>
voidfilterCollectionByType(Collection<T> source, Collection<E> destination, Class<E> clazz)
Copy the source collection into the destination one filtering source elements by the given type.static <C,E>
Map<C,List<E>>makeListMapImmutable(Map<C,List<E>> listMap)
Make a list map immutable.
-
-
-
Method Detail
-
makeListMapImmutable
public static <C,E> Map<C,List<E>> makeListMapImmutable(Map<C,List<E>> listMap)
Make a list map immutable.- Parameters:
listMap
- the list map in input.- Returns:
- the immutable list map.
-
filterCollectionByType
public static <T,E extends T> void filterCollectionByType(Collection<T> source, Collection<E> destination, Class<E> clazz)
Copy the source collection into the destination one filtering source elements by the given type.- Parameters:
source
- the source collectiondestination
- the destination collectionclazz
- the filtering type
-
-