public class CollectionUtils extends Object
Constructor and Description |
---|
CollectionUtils() |
Modifier and Type | Method and Description |
---|---|
static <T,E extends T> |
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.
|
static <C,E> Map<C,List<E>> |
makeListMapImmutable(Map<C,List<E>> listMap)
Make a list map immutable.
|
public static <C,E> Map<C,List<E>> makeListMapImmutable(Map<C,List<E>> listMap)
listMap
- the list map in input.public static <T,E extends T> void filterCollectionByType(Collection<T> source, Collection<E> destination, Class<E> clazz)
source
- the source collectiondestination
- the destination collectionclazz
- the filtering typeCopyright © 2015. All rights reserved.