public class New extends Object
| 构造器和说明 |
|---|
New() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2017. All rights reserved.