MCPcopy Create free account
hub / github.com/apache/storm / multiseteq

Method multiseteq

storm-server/src/main/java/org/apache/storm/Testing.java:629–636  ·  view source on GitHub ↗

Check if two collections are equivalent ignoring the order of elements.

(Collection<T> a, Collection<T> b)

Source from the content-addressed store, hash-verified

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.

Callers 6

TestingTestClass · 0.95
testFieldGroupingMethod · 0.95
testCustomGroupingsMethod · 0.95
testSplitMergeMethod · 0.95
testMultiRepartitionMethod · 0.95

Calls 3

multisetMethod · 0.95
printRecMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected