Check if two collections are equivalent ignoring the order of elements.
(Collection<T> a, Collection<T> b)
| 627 | * Check if two collections are equivalent ignoring the order of elements. |
| 628 | */ |
| 629 | public static <T> boolean multiseteq(Collection<T> a, Collection<T> b) { |
| 630 | boolean ret = multiset(a).equals(multiset(b)); |
| 631 | if (!ret) { |
| 632 | printRec(multiset(a), "MS-A:"); |
| 633 | printRec(multiset(b), "MS-B:"); |
| 634 | } |
| 635 | return ret; |
| 636 | } |
| 637 | |
| 638 | /** |
| 639 | * Create a {@link org.apache.storm.tuple.Tuple} for use with testing. |
no test coverage detected