public class CollectionsUtil
extends java.lang.Object
Constructor and Description |
---|
CollectionsUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.List<T> |
asList(java.util.Collection<T> collection) |
static <T> java.util.List<T> |
asList(java.util.Collection<T> collection,
java.util.function.Supplier<java.util.List<T>> listSupplier) |
static <T> java.util.Set<T> |
asSet(java.util.Collection<T> collection) |
static <T> java.util.Set<T> |
asSet(java.util.Collection<T> collection,
java.util.function.Supplier<java.util.Set<T>> setSupplier) |
public static <T> java.util.Set<T> asSet(java.util.Collection<T> collection, java.util.function.Supplier<java.util.Set<T>> setSupplier)
public static <T> java.util.Set<T> asSet(java.util.Collection<T> collection)
public static <T> java.util.List<T> asList(java.util.Collection<T> collection, java.util.function.Supplier<java.util.List<T>> listSupplier)
public static <T> java.util.List<T> asList(java.util.Collection<T> collection)