Lines Matching refs:comparator
147 // Try removing an entry that the comparator says is equal
201 assertNull(queue.comparator());
211 assertNull(queue.comparator());
222 assertNull(queue.comparator());
224 MockComparator<Object> comparator = new MockComparator<Object>();
225 queue = new PriorityQueue<Object>(100, comparator);
228 assertEquals(comparator, queue.comparator());
259 assertEquals(objectComparator, integerQueue.comparator());
275 assertNull(integerQueue.comparator());
325 assertEquals(queue.comparator(), constructedQueue.comparator());
343 assertEquals(treeSet.comparator(), queue.comparator());
364 assertEquals(integerQueue.comparator(), objectQueue.comparator());
646 // but comparator supports it.
647 MockComparator<Object> comparator = new MockComparator<Object>();
649 comparator);
660 * java.util.PriorityQueue#comparator()
664 assertNull(queue.comparator());
666 MockComparator<Object> comparator = new MockComparator<Object>();
667 queue = new PriorityQueue<Object>(100, comparator);
668 assertEquals(comparator, queue.comparator());