public class CollectionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
asSet(T... ts) |
static <T> Set<T> |
asTreeSet(T... ts) |
static <T> ArrayList<T> |
newArrayList() |
static <K,V> HashMap<K,V> |
newHashMap() |
static <T> HashSet<T> |
newHashSet() |
static <T> TreeSet<T> |
newTreeSet() |
public static <K,V> HashMap<K,V> newHashMap()
public static <T> HashSet<T> newHashSet()
public static <T> TreeSet<T> newTreeSet()
public static <T> ArrayList<T> newArrayList()
@SafeVarargs public static <T> Set<T> asSet(T... ts)
@SafeVarargs public static <T> Set<T> asTreeSet(T... ts)
Copyright © 2007-2021 Red Hat, Inc. All Rights Reserved