public final class CollectionUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static <T,U> Map<T,List<U>> | 
deepCopyMap(Map<T,? extends List<U>> map)
Perform a deep copy of the provided map of lists. 
 | 
static <T,U> Map<T,List<U>> | 
deepCopyMap(Map<T,? extends List<U>> map,
           Supplier<Map<T,List<U>>> mapConstructor)
Perform a deep copy of the provided map of lists. 
 | 
static <T,U> Map<T,List<U>> | 
deepUnmodifiableMap(Map<T,? extends List<U>> map)
Perform a deep copy of the provided map of lists, and make the result unmodifiable. 
 | 
static <T,U> Map<T,List<U>> | 
deepUnmodifiableMap(Map<T,? extends List<U>> map,
                   Supplier<Map<T,List<U>>> mapConstructor)
Perform a deep copy of the provided map of lists, and make the result unmodifiable. 
 | 
static boolean | 
isNullOrEmpty(Collection<?> collection)  | 
static boolean | 
isNullOrEmpty(Map<?,?> map)  | 
static <K,VInT,VOutT> | 
mapValues(Map<K,VInT> inputMap,
         Function<VInT,VOutT> mapper)  | 
static <T> List<T> | 
mergeLists(List<T> list1,
          List<T> list2)
Returns a new list containing the second list appended to the first list. 
 | 
static <K,V> Collector<Map.Entry<K,V>,?,Map<K,V>> | 
toMap()
Collect a stream of  
Map.Entry to a Map with the same key/value types | 
public static boolean isNullOrEmpty(Collection<?> collection)
public static boolean isNullOrEmpty(Map<?,?> map)
public static <T> List<T> mergeLists(List<T> list1, List<T> list2)
public static <T,U> Map<T,List<U>> deepCopyMap(Map<T,? extends List<U>> map)
public static <T,U> Map<T,List<U>> deepCopyMap(Map<T,? extends List<U>> map, Supplier<Map<T,List<U>>> mapConstructor)
public static <T,U> Map<T,List<U>> deepUnmodifiableMap(Map<T,? extends List<U>> map)
public static <T,U> Map<T,List<U>> deepUnmodifiableMap(Map<T,? extends List<U>> map, Supplier<Map<T,List<U>>> mapConstructor)
public static <K,V> Collector<Map.Entry<K,V>,?,Map<K,V>> toMap()
Map.Entry to a Map with the same key/value typesK - the key typeV - the value typeCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.