List of utility methods to do Collection Merge
void | mergeArrayIntoCollection(T[] array, Collection Merge the given array into the given Collection. if (collection == null) { throw new IllegalArgumentException("Collection must not be null"); for (int i = 0; i < array.length; i++) { collection.add(array[i]); |
Collection | mergeCollection(final Collection Merge collections where all objects are of the same type. if (col1 == null) { if (col2 == null) { return null; return col2; if (col2 == null) { return col1; ... |
Collection | mergeCollection(Collection merge Collection if (a == null && b == null) return null; Collection<O> result = null; try { if (a != null) result = a.getClass().newInstance(); else result = b.getClass().newInstance(); ... |
List | mergeCollections(Collection merge Collections return addCollections(false, inCollections);
|