List of utility methods to do Collection Add
int | addAll(final Collection add All int i = 0; for (final T e : objs) { if (coll.add(e)) { i++; return i; |
int | addAll(final Collection add All if (elements == null) return 0; int count = 0; for (final T elem : elements) if (collection.add(elem)) count++; return count; |
boolean | addAll(final Collection Adds all objects into the specified list. boolean result = false; for (final T object : objects) { if (!collection.contains(object)) { result |= collection.add(object); return result; |
boolean | addAll(final Collection Adds all objects into the specified list. boolean result = false; for (final T object : objects) { if (!collection.contains(object)) { result |= collection.add(object); return result; |
Collection | addAll(final Collection add All if (null != items) { if (null != collection) { Collections.addAll(collection, items); return collection; |
int | addAll(final T[] source, final Collection add All int count = 0; for (final T sourceItem : source) { destination.add(sourceItem); ++count; return count; |
TCollection | addAll(final TCollection target, final Iterable extends TElement> source) Adds all the elements of the given source to the given target collection. if (target != null && source != null) { for (TElement element : source) { target.add(element); return target; |
void | addAll(Iterable extends T> iterable, Collection super T> collection) Add all elements from the given iterable into the given collection for (T t : iterable) {
collection.add(t);
|
void | addAll(Iterable add All for (T item : iterable)
collection.add(item);
|
S | addAll(S collection, T... values) Add all elements to the collection collection.addAll(Arrays.asList(values));
return collection;
|