/** * Create a new Set that consists as a coalesced set of the specified collections. * * @param c Zero or more collections to add to this set. */ @SafeVarargs public MultiSet(Collection<E>...c) { for (Collection<E> cc : c) append(cc); }
/** * Create a new Set that consists as a coalesced set of the specified collections. * * @param c Zero or more collections to add to this set. */ @SafeVarargs public MultiSet(Collection<E>...c) { for (Collection<E> cc : c) append(cc); }
/** * Create a new Set that consists as a coalesced set of the specified collections. * * @param c Zero or more collections to add to this set. */ @SafeVarargs public MultiSet(Collection<E>...c) { for (Collection<E> cc : c) append(cc); }
ms = new MultiSet<>(l1).append(l2); assertObjectEquals("['1','2','3','4']", ms); assertObjectEquals("['1','2','3','4']", ms.enumerator());