Android Utililty Methods Collection Merge

List of utility methods to do Collection Merge


The list of methods to do Collection Merge are organized into topic(s).


CollectionaddAllIgnoreContains( Collection origin, Collection target)
Add all elements in the target collection to the origin collection, and ignore elements which origin collection contained.
if (origin == null) {
    return null;
List<T> temp = new ArrayList<T>();
if (!isEmpty(target)) {
    Iterator<T> it = target.iterator();
    while (it.hasNext()) {
        T object =;