/libcore/luni/src/test/java/libcore/java/util/ |
H A D | OldPriorityQueueTest.java | 31 assertNull(queue.comparator()); 49 // Even though "BB" is equivalent to "AA" using the string length comparator, remove()
|
H A D | TreeMapTest.java | 176 * Test that entry set contains and removal use the comparator rather than equals. 189 assertEquals(null, copy.comparator()); 296 assertEquals(0, deserialized.comparator().compare("X", "x")); 408 assertEquals(0, deserialized.comparator().compare("X", "x")); 558 Comparator<Map.Entry<String, String>> comparator = 563 SpliteratorTester.runBasicSplitTests(values, expectedValues, comparator);
|
H A D | OldCollectionsTest.java | 46 private static final SerializableAssert comparator = new SerializableAssert() { field in class:OldCollectionsTest 312 assertNotNull("Assert 0: comparator must not be null", roc); 314 assertTrue("Assert 1: comparator must implement Serializable", 330 assertNotNull("Assert 0: comparator must not be null", roc); 332 assertTrue("Assert 1: comparator must implement Serializable", 342 assertNotNull("Assert 3: comparator must not be null", roc); 344 assertTrue("Assert 4: comparator must implement Serializable", 586 SerializationTest.verifySelf(Collections.EMPTY_LIST, comparator); 593 SerializationTest.verifySelf(Collections.EMPTY_MAP, comparator); 600 SerializationTest.verifySelf(Collections.EMPTY_SET, comparator); [all...] |
H A D | OldTreeMapTest.java | 94 assertTrue("TreeMap answered incorrect comparator", reversedTreeMap 95 .comparator() == comp); 98 assertTrue("TreeMap does not use comparator (firstKey was incorrect)", 100 assertTrue("TreeMap does not use comparator (lastKey was incorrect)", 140 assertTrue("New tree map does not answer correct comparator", 141 anotherTreeMap.comparator() == comp); 142 assertTrue("TreeMap does not use comparator (firstKey was incorrect)", 144 assertTrue("TreeMap does not use comparator (lastKey was incorrect)",
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | Collections2Test.java | 48 private static final SerializableAssert comparator = new SerializableAssert() { field in class:Collections2Test 285 assertNotNull("Assert 0: comparator must not be null", roc); 287 assertTrue("Assert 1: comparator must implement Serializable", 303 assertNotNull("Assert 0: comparator must not be null", roc); 305 assertTrue("Assert 1: comparator must implement Serializable", 315 assertNotNull("Assert 3: comparator must not be null", roc); 317 assertTrue("Assert 4: comparator must implement Serializable", 400 SerializationTest.verifySelf(Collections.EMPTY_LIST, comparator); 407 SerializationTest.verifySelf(Collections.EMPTY_MAP, comparator); 414 SerializationTest.verifySelf(Collections.EMPTY_SET, comparator); [all...] |
H A D | TreeSetTest.java | 81 "Answered incorrect first element--did not use custom comparator ", 84 "Answered incorrect last element--did not use custom comparator ", 103 assertTrue("TreeSet does not answer correct comparator", anotherTreeSet 104 .comparator() == comp); 105 assertTrue("TreeSet does not use comparator", 159 * java.util.TreeSet#comparator() 162 // Test for method java.util.Comparator java.util.TreeSet.comparator() 165 assertTrue("Answered incorrect comparator", 166 myTreeSet.comparator() == comp);
|
H A D | TreeMapExtendTest.java | 80 assertNull(treeMap.comparator()); 129 assertEquals(mockComparator, treeMap.comparator()); 181 assertEquals(tm.comparator(), subMap_default.comparator()); 1611 assertNotNull(descendingMap.comparator()); 1626 assertNotNull(descendingMap.comparator()); 1641 assertNotNull(descendingMap.comparator()); 1656 assertNotNull(descendingMap.comparator()); 3438 Comparator comparator; 3445 assertNull(((NavigableSet) entrySet).comparator()); [all...] |
H A D | IdentityHashMapTest.java | 457 SerializationTest.verifySelf(map, comparator); 458 SerializationTest.verifyGolden(this, map, comparator); 491 private static final SerializationTest.SerializableAssert comparator = new field in class:IdentityHashMapTest 1050 Comparator<Map.Entry<String, String>> comparator = 1054 SpliteratorTester.runBasicSplitTests(values, expectedValues, comparator); 1087 // comparator for IdentityHashMap objects
|
H A D | WeakHashMapTest.java | 594 Comparator<Map.Entry<String, String>> comparator = 599 SpliteratorTester.runBasicSplitTests(values, expectedValues, comparator);
|
H A D | ArraysTest.java | 313 "Binary search on Object[] with custom comparator answered incorrect position", 1582 assertTrue("Array not sorted correctly with custom comparator", 1613 Comparator<Element> comparator = new Comparator<Element>() { 1619 Arrays.sort(array, comparator); 1622 assertTrue(comparator.compare(array[i - 1], array[i]) <= 0); 1623 if (comparator.compare(array[i - 1], array[i]) == 0) { 3105 "Binary search on Object[] with custom comparator answered incorrect position", 5386 Comparator comparator = new ReversedIntegerComparator(); 5387 Arrays.parallelSort(reversedArray, comparator); 5397 Arrays.sort(reversedArray, comparator); [all...] |
H A D | IdentityHashMap2Test.java | 457 private static final SerializationTest.SerializableAssert comparator = new field in class:IdentityHashMap2Test
|
H A D | HashMapTest.java | 906 Comparator<Map.Entry<String, String>> comparator = 910 SpliteratorTester.runBasicSplitTests(values, expectedValues, comparator);
|
H A D | LinkedHashMapTest.java | 908 Comparator<Map.Entry<String, String>> comparator = 913 SpliteratorTester.runBasicSplitTests(entries, expectedValues, comparator);
|
H A D | TreeMapTest.java | 83 if (null == o2) { // comparator should be symmetric 111 assertTrue("TreeMap answered incorrect comparator", reversedTreeMap 112 .comparator() == comp); 115 assertTrue("TreeMap does not use comparator (firstKey was incorrect)", 117 assertTrue("TreeMap does not use comparator (lastKey was incorrect)", 145 assertTrue("New tree map does not answer correct comparator", 146 anotherTreeMap.comparator() == comp); 147 assertTrue("TreeMap does not use comparator (firstKey was incorrect)", 149 assertTrue("TreeMap does not use comparator (lastKey was incorrect)", 201 * java.util.TreeMap#comparator() [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | ArraysParallelSortHelpers.java | 117 Comparator<? super T> comparator; field in class:ArraysParallelSortHelpers.FJObject.Sorter 120 Comparator<? super T> comparator) { 124 this.comparator = comparator; 128 Comparator<? super T> c = this.comparator; 154 Comparator<? super T> comparator; field in class:ArraysParallelSortHelpers.FJObject.Merger 158 Comparator<? super T> comparator) { 164 this.comparator = comparator; 168 Comparator<? super T> c = this.comparator; 118 Sorter(CountedCompleter<?> par, T[] a, T[] w, int base, int size, int wbase, int gran, Comparator<? super T> comparator) argument 155 Merger(CountedCompleter<?> par, T[] a, T[] w, int lbase, int lsize, int rbase, int rsize, int wbase, int gran, Comparator<? super T> comparator) argument [all...] |
H A D | Collections.java | 184 * specified comparator. All elements in the list must be <i>mutually 185 * comparable</i> using the specified comparator (that is, 225 * @param c the comparator to determine the order of the list. A 229 * <i>mutually comparable</i> using the specified comparator. 232 * @throws IllegalArgumentException (optional) if the comparator is 355 * according to the specified comparator (as by the 371 * @param c the comparator by which the list is ordered. 383 * <i>mutually comparable</i> using the specified comparator, 385 * elements of the list using this comparator. 681 * order induced by the specified comparator 1240 public Comparator<? super E> comparator() {return ss.comparator();} method in class:Collections.UnmodifiableSortedSet 1786 public Comparator<? super K> comparator() { return sm.comparator(); } method in class:Collections.UnmodifiableSortedMap 2051 public Comparator<? super E> comparator() { method in class:Collections.SynchronizedSortedSet 2493 public Comparator<? super K> comparator() { method in class:Collections.SynchronizedSortedMap 2803 public Comparator<? super E> comparator() { return ss.comparator(); } method in class:Collections.CheckedSortedSet 3421 public Comparator<? super K> comparator() { return sm.comparator(); } method in class:Collections.CheckedSortedMap [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | ForwardBuilder.java | 72 private Comparator<X509Certificate> comparator; field in class:ForwardBuilder 96 comparator = new PKIXCertComparator(trustedSubjectDNs); 125 Set<X509Certificate> certs = new TreeSet<>(comparator); 443 * return 0 because the comparator would behave strangely 447 * certs are equal so that this comparator behaves
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | Collectors.java | 423 * reducing(BinaryOperator.minBy(comparator)) 427 * @param comparator a {@code Comparator} for comparing elements 431 minBy(Comparator<? super T> comparator) { argument 432 return reducing(BinaryOperator.minBy(comparator)); 442 * reducing(BinaryOperator.maxBy(comparator)) 446 * @param comparator a {@code Comparator} for comparing elements 450 maxBy(Comparator<? super T> comparator) { argument 451 return reducing(BinaryOperator.maxBy(comparator));
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | PriorityQueueTest.java | 118 * The comparator used in constructor is used 123 assertEquals(cmp, q.comparator());
|
H A D | PriorityBlockingQueueTest.java | 148 * The comparator used in constructor is used 153 assertEquals(cmp, q.comparator());
|
H A D | ConcurrentSkipListSetTest.java | 126 * The comparator used in constructor is used 131 assertEquals(cmp, q.comparator());
|
H A D | TreeSetTest.java | 130 * The comparator used in constructor is used 135 assertEquals(cmp, q.comparator());
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | PatternTest.java | 802 SerializableAssert comparator = new SerializableAssert() { 809 SerializationTest.verifyGolden(this, pat, comparator); 810 SerializationTest.verifySelf(pat, comparator);
|
/libcore/support/src/test/java/tests/resources/ |
H A D | junit4-4.3.1.jar | META-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ... |