List of utility methods to do Collection Add
void | addAll(Collection add All addAll(collection, iterable.iterator()); |
void | addAll(Collection Adds all elements in the iteration to the given collection. while (iterator.hasNext()) {
collection.add(iterator.next());
|
void | addAll(Collection Adds all elements of the iterator to the collection. while (pIterator.hasNext()) {
pCollection.add(pIterator.next());
|
void | addAll(Collection Adds an array of integer values to a collection of Integer for (int iValue : intArray) { integerCollection.add(iValue); |
void | addAll(Collection INTERNAL: Adds all elements in the array to the collection. for (int i = 0; i < a.length; i++) { c.add(a[i]); |
void | addAll(Collection add All if (isEmpty(arr)) { return; for (T val : arr) { col.add(val); |
void | addAll(Collection Appends an arbitrary number of explicit elements to an existing collection. for (T elem : elems)
coll.add(elem);
|
C | addAll(Collection A potentially more efficient addAll() for unordered Collections. if (coll1 == null) return (C) coll2; if (coll2 == null) return (C) coll1; Collection<T> cSmaller, cBigger; if (coll1.size() < coll2.size()) { cSmaller = coll1; cBigger = coll2; ... |
boolean | addAll(Collection add All int size = toAdd.size(); boolean result = false; if (size > 0) { if (size < 10) for (T element : toAdd) result |= collection.add(element); else result = collection.addAll(toAdd); ... |
void | addAll(Collection Add all the items from an iterable to a collection. for (T item : items) {
collection.add(item);
|