Java Collection Union union(Collection a, Collection b)

Here you can find the source of union(Collection a, Collection b)

Description

Union of two collections with duplicates

License

Apache License

Parameter

Parameter Description
a first collection
b second collection

Exception

Parameter Description
IllegalArgumentException if any of arguments is null

Return

new Collection with elements from a and b, can have duplicates

Declaration

public static <T> Collection<T> union(Collection<T> a, Collection<T> b) throws IllegalArgumentException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {
    /**/*from   w  w  w.j a va2s .  co m*/
     * Union of two collections with duplicates
     *
     * @param a first collection
     * @param b second collection
     * @return new Collection with elements from a and b, can have duplicates
     * @throws IllegalArgumentException if any of arguments is null
     */
    public static <T> Collection<T> union(Collection<T> a, Collection<T> b) throws IllegalArgumentException {
        return null;
    }
}

Related

  1. union(Collection c1, Collection c2)
  2. union(Collection coll)
  3. union(Collection collection1, Collection collection2)
  4. union(Collection c1, Collection c2)
  5. union(Collection> sets)
  6. union(Collection c1, Collection c2)
  7. union(Collection initial, Collection other)
  8. union(Collection lhs, Collection rhs)
  9. union(Collection set1, Collection set2)