public class CollectionHelper
extends Object
Provides some methods for simplified collection instantiation.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CollectionHelper
public CollectionHelper()
-
Method Details
-
newHashMap
public static <K,
V> HashMap<K,V> newHashMap()
-
newSortedMap
public static <K,
V> SortedMap<K,V> newSortedMap()
-
newHashSet
public static <T> HashSet<T> newHashSet()
-
newArrayList
public static <T> ArrayList<T> newArrayList()
-
asSet
public static <T> Set<T> asSet(T... ts)