public class Lists
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <E> java.util.ArrayList<E> |
newArrayList()
Creates a new
ArrayList. |
static <E> java.util.ArrayList<E> |
newArrayList(java.util.Iterator<? extends E> iterator)
Creates a new
ArrayList filled with the contents of the given
iterator. |
public static <E> java.util.ArrayList<E> newArrayList()
ArrayList.ArrayListpublic static <E> java.util.ArrayList<E> newArrayList(java.util.Iterator<? extends E> iterator)
ArrayList filled with the contents of the given
iterator.iterator - the source iteratorArrayList