|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.util.New
public class New
This class contains static methods to construct commonly used generic objects such as ArrayList.
Constructor Summary | |
---|---|
New()
|
Method Summary | ||
---|---|---|
static
|
arrayList()
Create a new ArrayList. |
|
static
|
arrayList(java.util.Collection<T> c)
Create a new ArrayList. |
|
static
|
arrayList(int initialCapacity)
Create a new ArrayList. |
|
static
|
hashMap()
Create a new HashMap. |
|
static
|
hashMap(int initialCapacity)
Create a new HashMap. |
|
static
|
hashSet()
Create a new HashSet. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public New()
Method Detail |
---|
public static <T> java.util.ArrayList<T> arrayList()
T
- the type
public static <K,V> java.util.HashMap<K,V> hashMap()
K
- the key typeV
- the value type
public static <K,V> java.util.HashMap<K,V> hashMap(int initialCapacity)
K
- the key typeV
- the value typeinitialCapacity
- the initial capacity
public static <T> java.util.HashSet<T> hashSet()
T
- the type
public static <T> java.util.ArrayList<T> arrayList(java.util.Collection<T> c)
T
- the typec
- the collection
public static <T> java.util.ArrayList<T> arrayList(int initialCapacity)
T
- the typeinitialCapacity
- the initial capacity
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |