Home
last modified time | relevance | path

Searched defs:comparator (Results 1 – 25 of 35) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DComparatorTest.java48 private <T> void checkComparison(Comparator<T> comparator, List<T> items) { in checkComparison()
60 Comparator<Item> comparator = Comparator.comparingDouble(Item::getOrderAsDouble); in testComparingDouble() local
65 Comparator<Item> comparator = Comparator.comparingInt(Item::getOrderAsInt); in testComparingInt() local
70 Comparator<Item> comparator = Comparator.comparingLong(Item::getOrderAsLong); in testComparingLong() local
75 Comparator<Item> comparator = Comparator.comparing(Item::getOrderAsString); in testComparing() local
80 Comparator<Item> comparator = Comparator.comparing(Item::getOrderAsString, in testComparing2() local
86 Comparator<Item> comparator = Comparator.naturalOrder(); in testNaturalOrder() local
95 Comparator<Item> comparator = Comparator.reverseOrder(); in testReverseOrder() local
107 Comparator<Item> comparator = Comparator.naturalOrder(); in testReverse2() local
112 Comparator<Item> comparator = Comparator.comparing(Item::getOrderAsString); in testReverse3() local
[all …]
DSpliteratorTester.java62 List<T> expectedElements, Comparator<T> comparator) { in runBasicIterationTests_unordered()
118 List<T> expectedElements, Comparator<T> comparator) { in runBasicSplitTests()
174 List<T> expectedElements, Comparator<T> comparator) { in runBasicSplitTests()
175 runBasicSplitTests(spliterable.spliterator(), expectedElements, comparator); in runBasicSplitTests() local
306 public static <T> void runSortedTests(Iterable<T> spliterable, Comparator<T> comparator) { in runSortedTests()
/libcore/ojluni/src/main/java/java/util/function/
DBinaryOperator.java57 public static <T> BinaryOperator<T> minBy(Comparator<? super T> comparator) { in minBy()
72 public static <T> BinaryOperator<T> maxBy(Comparator<? super T> comparator) { in maxBy()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
DHttpRetryExceptionTest.java35 private static final SerializableAssert comparator = new SerializableAssert() { field in HttpRetryExceptionTest
/libcore/support/src/test/java/org/apache/harmony/testframework/serialization/
DSerializationTest.java319 public static void verifyGolden(Object test, Object object, SerializableAssert comparator) in verifyGolden()
356 public static void verifyGolden(Object test, Object[] objects, SerializableAssert comparator) in verifyGolden()
386 public static void verifySelf(Object object, SerializableAssert comparator) throws Exception { in verifySelf()
415 public static void verifySelf(Object[] objects, SerializableAssert comparator) in verifySelf()
/libcore/ojluni/src/main/java/java/util/
DSortedSet.java118 Comparator<? super E> comparator(); in comparator() method
DComparator.java377 public static <T> Comparator<T> nullsFirst(Comparator<? super T> comparator) { in nullsFirst()
398 public static <T> Comparator<T> nullsLast(Comparator<? super T> comparator) { in nullsLast()
DSortedMap.java123 Comparator<? super K> comparator(); in comparator() method
DPriorityQueue.java108 private final Comparator<? super E> comparator; field in PriorityQueue
147 public PriorityQueue(Comparator<? super E> comparator) { in PriorityQueue()
163 Comparator<? super E> comparator) { in PriorityQueue()
748 public Comparator<? super E> comparator() { in comparator() method in PriorityQueue
DTreeSet.java140 public TreeSet(Comparator<? super E> comparator) { in TreeSet()
386 public Comparator<? super E> comparator() { in comparator() method in TreeSet
/libcore/ojluni/annotations/sdk/nullability/java/util/
DSortedMap.annotated.java33 ….util.Nullable public java.util.Comparator<? super @libcore.util.NullFromTypeParam K> comparator(); in comparator() method
DTreeMap.annotated.java36 …tor<? super @libcore.util.NullFromTypeParam K> comparator) { throw new RuntimeException("Stub!"); } in TreeMap()
50 …public java.util.Comparator<? super @libcore.util.NullFromTypeParam K> comparator() { throw new Ru… in comparator() method in TreeMap
/libcore/ojluni/annotations/hiddenapi/java/util/
DPriorityQueue.java41 public PriorityQueue(java.util.Comparator<? super E> comparator) { in PriorityQueue()
45 public PriorityQueue(int initialCapacity, java.util.Comparator<? super E> comparator) { in PriorityQueue()
165 public java.util.Comparator<? super E> comparator() { in comparator() method in PriorityQueue
186 private final java.util.Comparator<? super E> comparator; field in PriorityQueue
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListSet.java125 public ConcurrentSkipListSet(Comparator<? super E> comparator) { in ConcurrentSkipListSet()
390 public Comparator<? super E> comparator() { in comparator() method in ConcurrentSkipListSet
DPriorityBlockingQueue.java161 private transient Comparator<? super E> comparator; field in PriorityBlockingQueue
220 Comparator<? super E> comparator) { in PriorityBlockingQueue()
588 public Comparator<? super E> comparator() { in comparator() method in PriorityBlockingQueue
DConcurrentSkipListMap.java375 final Comparator<? super K> comparator; field in ConcurrentSkipListMap
1291 public ConcurrentSkipListMap(Comparator<? super K> comparator) { in ConcurrentSkipListMap()
2021 public Comparator<? super K> comparator() { in comparator() method in ConcurrentSkipListMap
2372 public Comparator<? super K> comparator() { return m.comparator(); } in comparator() method in ConcurrentSkipListMap.KeySet
2906 public Comparator<? super K> comparator() { in comparator() method in ConcurrentSkipListMap.SubMap
3305 final Comparator<? super K> comparator; field in ConcurrentSkipListMap.CSLMSpliterator
3310 CSLMSpliterator(Comparator<? super K> comparator, Index<K,V> row, in CSLMSpliterator()
3321 KeySpliterator(Comparator<? super K> comparator, Index<K,V> row, in KeySpliterator()
3409 ValueSpliterator(Comparator<? super K> comparator, Index<K,V> row, in ValueSpliterator()
3496 EntrySpliterator(Comparator<? super K> comparator, Index<K,V> row, in EntrySpliterator()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DPriorityBlockingQueue.java52 public PriorityBlockingQueue(int initialCapacity, java.util.Comparator<? super E> comparator) { in PriorityBlockingQueue()
124 public java.util.Comparator<? super E> comparator() { in comparator() method in PriorityBlockingQueue
215 private transient java.util.Comparator<? super E> comparator; field in PriorityBlockingQueue
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRefSortedMap.java88 private final Comparator<? super K> comparator; field in RefSortedMap
DPriorityQueueTest.java224 MockComparator<Object> comparator = new MockComparator<Object>(); in test_ConstructorILjava_util_Comparator() local
647 MockComparator<Object> comparator = new MockComparator<Object>(); in test_remove_Ljava_lang_Object_not_Compatible() local
666 MockComparator<Object> comparator = new MockComparator<Object>(); in test_comparator() local
DRandomTest.java319 public static final SerializationTest.SerializableAssert comparator = field in RandomTest
DHashSetTest.java308 private static final SerializationTest.SerializableAssert comparator = new field in HashSetTest
DCollections2Test.java48 private static final SerializableAssert comparator = new SerializableAssert() { field in Collections2Test
DIdentityHashMapTest.java491 private static final SerializationTest.SerializableAssert comparator = new field in IdentityHashMapTest
1052 Comparator<Map.Entry<String, String>> comparator = in test_spliterator_entrySet() local
DIdentityHashMap2Test.java457 private static final SerializationTest.SerializableAssert comparator = new field in IdentityHashMap2Test
/libcore/ojluni/src/main/java/java/net/
DInMemoryCookieStore.java360 T comparator) in getInternal2()

12