List of utility methods to do ArrayList Create
List | newArrayList(E... elements) new Array List ArrayList<E> list = new ArrayList<E>(elements.length); Collections.addAll(list, elements); return list; |
ArrayList | newArrayList(E... elements) Creates a new ArrayList with the provided elements. return new ArrayList<>(Arrays.asList(elements)); |
List | newArrayList(final Collection extends E> elements) Create an ArrayList Object. return new ArrayList<E>(elements); |
List | newArrayList(final Iterator new Array List if (!iter.hasNext()) { return Collections.emptyList(); final List<T> result = new ArrayList<T>(); while (iter.hasNext()) { result.add(iter.next()); return result; ... |
List | newArrayList(int initialCapacity) Constructs an empty list with the specified initial capacity. return new ArrayList<T>(initialCapacity); |
ArrayList | newArrayList(int initialCapacity) new Array List return new ArrayList<E>(initialCapacity); |
ArrayList | newArrayList(int initialCapacity) Construct and return new epmty ArrayList with given initial capacity. return new ArrayList<T>(initialCapacity); |
ArrayList | newArrayList(int initialCapacity) new Array List return new ArrayList<T>(initialCapacity); |
List | newArrayList(int size) Create new ArrayList . return new ArrayList<L>(size); |
ArrayList | newArrayList(Iterable extends E> elements) new Array List if (elements instanceof Collection) { Collection<? extends E> collection = (Collection<? extends E>) elements; return new ArrayList<E>(collection); } else { return newArrayList(elements.iterator()); |