/** * Check if two collections are equivalent ignoring the order of elements. */publicstatic <T> boolean multiseteq(Collection<T> a, Collection<T> b) {
boolean ret = multiset(a).equals(multiset(b));
if (!ret) {
printRec(multiset(a), "MS-A:");
printRec(multiset(b), "MS-B:");
}
return ret;
}