List of utility methods to do Collection Add
void | addAllSafe(Collection Adds all elements of collection2 to collection1. if (collection2 != null) {
collection1.addAll(collection2);
|
void | addAllUncontained(Collection Adds all elements from col2 to col1, if they're not already contained. for (T t : col2) { if (!col1.contains(t)) { col1.add(t); |
boolean | addAllUnique(final Collection collection, final Collection values) add a collection of values to a collection. boolean changed = false; for (final Iterator iter = values.iterator(); iter.hasNext();) { changed = addUnique(collection, iter.next()); return changed; |
Collection | addArray(Collection Adds the whole array to the collection. if (array == null) { return col; for (T a : array) { col.add(a); return col; |
java.util.Collection | addArray(java.util.Collection add Array if ((array == null) || (v == null)) { return v; for (int i = 0; i < array.length; i++) { v.add(array[i]); return v; |
void | addArrayToCollection(T[] array, Collection add Array To Collection for (int i = 0; i < array.length; i++) { if (array[i] != null) { collection.add(array[i]); |
void | addArrayToCollection(T[] array, Collection Adds all array elements to the given collection of the same type. if (collection == null) { collection = new ArrayList<T>(); for (T o : array) { collection.add(o); |
void | addCheck(Collection c, Object o) add Check if (o != null) {
c.add(o);
|
List | addCollections(Collection add Collections return addCollections(true, inCollections);
|
void | addCondition(Collection add Condition addConditionImpl(conditions, condition, String.valueOf(value)); |