Java Utililty Methods List Value Add All

List of utility methods to do List Value Add All

Description

The list of methods to do List Value Add All are organized into topic(s).

Method

voidaddAll(ArrayList list, T[] array)
add All
if (array == null) {
    return;
list.addAll(Arrays.asList(array));
voidaddAll(final List list, final E... values)
Add all elements in an array to a list
for (final E value : values) {
    list.add(value);
ListaddAll(final List firstList, final List secondList)
add All
final List<T> result = new ArrayList<>(firstList);
result.addAll(secondList);
return result;
voidaddAll(final List list, final T... elements)
add All
for (final T element : elements) {
    list.add(element);
ListaddAll(int index, List list, T... array)
Add arrays members to list starting at index.
for (T item : array) {
    list.add(index++, item);
return list;
ListaddAll(List dest, List src)
add All
return addAll(dest, src, true);
voidaddAll(List fromList, List toList)
add All
addAll(fromList, toList, false);
voidaddAll(List list, E[] elements)
Add all of the elements in the given array to the given list.
int count = elements.length;
for (int i = 0; i < count; i++) {
    list.add(elements[i]);
voidaddAll(List list, String[] array)
Adds all items in the specific array to the specific list.
for (String item : array)
    list.add(item);
booleanaddAll(List list, T... array)
add All
return addElements(list, array);