Class CollectionUtils
java.lang.Object
org.wicketstuff.rest.utils.collection.CollectionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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.makeListMapImmutable
(Map<C, List<E>> listMap) Make a list map immutable.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
makeListMapImmutable
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
-