/** * Appends all elements of given array. */ public boolean addAll(E... array) { if (array.length == 0) { return false; } return doAddAll(array); }
/** * Appends all of the elements in the specified collection to the end of * this list, in the order that they are returned by the * specified collection's Iterator. */ @Override public boolean addAll(Collection<? extends E> collection) { if (collection.isEmpty()) { return false; } Object[] array = collection.toArray(); return doAddAll(array); }
/** * Inserts all array elements to this list. */ public boolean addAll(int index, E... array) { rangeCheck(index); return doAddAll(index, array); }
/** * Inserts all of the elements in the specified collection into this * list, starting at the specified position. Shifts the element * currently at that position (if any) and any subsequent elements. * The new elements will appear in the list in the order that they are returned by the * specified collection's iterator. */ @Override public boolean addAll(int index, Collection<? extends E> collection) { rangeCheck(index); Object[] array = collection.toArray(); return doAddAll(index, array); }
/** * Appends all elements of given array. */ public boolean addAll(E... array) { if (array.length == 0) { return false; } return doAddAll(array); }
/** * Appends all of the elements in the specified collection to the end of * this list, in the order that they are returned by the * specified collection's Iterator. */ @Override public boolean addAll(Collection<? extends E> collection) { if (collection.isEmpty()) { return false; } Object[] array = collection.toArray(); return doAddAll(array); }
/** * Inserts all of the elements in the specified collection into this * list, starting at the specified position. Shifts the element * currently at that position (if any) and any subsequent elements. * The new elements will appear in the list in the order that they are returned by the * specified collection's iterator. */ @Override public boolean addAll(int index, Collection<? extends E> collection) { rangeCheck(index); Object[] array = collection.toArray(); return doAddAll(index, array); }
/** * Inserts all array elements to this list. */ public boolean addAll(int index, E... array) { rangeCheck(index); return doAddAll(index, array); }