Class ModeratorMultiTest

    • Constructor Detail

      • ModeratorMultiTest

        ModeratorMultiTest()
    • Method Detail

      • addAllComments

        private static void addAllComments​(Map<Double,​String> toxic,
                                           ExtrinsicMinPQ<String> pq)
        Add all comments and toxicities to the given priority queue.
        Parameters:
        toxic - Map of toxicity values to comments (since comments can share the same toxicity value).
        pq - destination priority queue.
      • sameRemoveOrder

        private static boolean sameRemoveOrder​(ExtrinsicMinPQ<String> ref,
                                               ExtrinsicMinPQ<String> test)
        Remove all elements from ref and test and returns true if the order of removals are the same.
        Parameters:
        ref - the reference priority queue.
        test - the testing priority queue.
        Returns:
        true if the order of removals are the same.