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
.E
- type of elements contained in new listArrayList
public static <E> java.util.ArrayList<E> newArrayList(java.util.Iterator<? extends E> iterator)
ArrayList
filled with the contents of the given
iterator
.E
- type of elements contained in new listiterator
- the source iteratorArrayList
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"