List of utility methods to do Collection Add
void | addAll(Collection Adds all the items in "fromCollection" into "intoCollection". for (T t : fromCollection) {
intoCollection.add(t);
|
void | addAll(Collection Add all from right to left collection if (left != null && right != null) {
left.addAll(right);
|
Collection | addAll(Collection Utility for adding an iterable to a collection. for (T t : t2) { t1.add(t); return t1; |
void | addAll(Collection add All if (target != null && source != null && source.size() > 0) {
target.addAll(source);
|
void | addAll(Collection add All for (T t : source) {
target.add(t);
|
void | addAll(Collection Adds all elements from source to target .
if (source != null) { for (int s = 0, n = source.length; s < n; s++) { target.add(source[s]); |
void | addAll(final Collection coll, final Object[] array) Convenience method that adds all members of an array to a collection. for (int i = 0; i < array.length; i++) { coll.add(array[i]); |
boolean | addAll(final Collection extends T> newItems, final Collection Adds the given items to the given collection if ((existingItems != null) && (newItems != null)) { return existingItems.addAll(newItems); return false; |
boolean | addAll(final Collection super E> c, final E... array) add All boolean result = false; for (final E element : array) { result |= c.add(element); return result; |
void | addAll(final Collection super E> thingsToBeAddedTo, final Collection extends E> thingsToAdd) Adds thingsToAdd to thingsToBeAddedTo. if (thingsToBeAddedTo == null) { throw new IllegalArgumentException("There's no thingsToBeAddedTo!"); if (!isEmpty(thingsToAdd)) { thingsToBeAddedTo.addAll(thingsToAdd); |