public class MutableCollections extends Object
| Constructor and Description | 
|---|
MutableCollections()  | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> List<T> | 
copyListFromNullable(Collection<T> toCopy)  | 
static <T> List<T> | 
copyListFromNullable(Collection<T> toCopy,
                    java.util.function.Supplier<List<T>> listSupplier)
Copy a Collection to a List. 
 | 
static <T,S> Map<T,S> | 
copyMapFromNullable(Map<T,S> toCopy)  | 
static <T,S> Map<T,S> | 
copyMapFromNullable(Map<T,S> toCopy,
                   java.util.function.Supplier<Map<T,S>> mapSupplier)
Copy a Map. 
 | 
public static <T> List<T> copyListFromNullable(Collection<T> toCopy, java.util.function.Supplier<List<T>> listSupplier)
toCopy - the Collection to copylistSupplier - the supplier for the desired List typepublic static <T> List<T> copyListFromNullable(Collection<T> toCopy)
public static <T,S> Map<T,S> copyMapFromNullable(Map<T,S> toCopy, java.util.function.Supplier<Map<T,S>> mapSupplier)
toCopy - the Map to copymapSupplier - the supplier for the desired Map typeCopyright © 2021. All rights reserved.