public class New extends Object
| Constructor and Description |
|---|
New() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ArrayList<T> |
arrayList()
Create a new ArrayList.
|
static <T> ArrayList<T> |
arrayList(Collection<T> c)
Create a new ArrayList.
|
static <T> ArrayList<T> |
arrayList(int initialCapacity)
Create a new ArrayList.
|
static <K,V> HashMap<K,V> |
hashMap()
Create a new HashMap.
|
static <K,V> HashMap<K,V> |
hashMap(int initialCapacity)
Create a new HashMap.
|
static <T> HashSet<T> |
hashSet()
Create a new HashSet.
|
public static <T> ArrayList<T> arrayList()
T - the typepublic static <K,V> HashMap<K,V> hashMap()
K - the key typeV - the value typepublic static <K,V> HashMap<K,V> hashMap(int initialCapacity)
K - the key typeV - the value typeinitialCapacity - the initial capacitypublic static <T> HashSet<T> hashSet()
T - the typepublic static <T> ArrayList<T> arrayList(Collection<T> c)
T - the typec - the collectionpublic static <T> ArrayList<T> arrayList(int initialCapacity)
T - the typeinitialCapacity - the initial capacityCopyright © 2012 JBoss by Red Hat. All Rights Reserved.