/libcore/ojluni/src/main/java/java/util/ |
D | Comparators.java | 47 enum NaturalOrderComparator implements Comparator<Comparable<Object>> { 51 public int compare(Comparable<Object> c1, Comparable<Object> c2) { in compare() 56 public Comparator<Comparable<Object>> reversed() { in reversed()
|
D | ComparableTimSort.java | 249 Comparable pivot = (Comparable) a[start]; in binarySort() 320 if (((Comparable) a[runHi++]).compareTo(a[lo]) < 0) { // Descending in countRunAndMakeAscending() 321 while (runHi < hi && ((Comparable) a[runHi]).compareTo(a[runHi - 1]) < 0) in countRunAndMakeAscending() 325 while (runHi < hi && ((Comparable) a[runHi]).compareTo(a[runHi - 1]) >= 0) in countRunAndMakeAscending() 466 int k = gallopRight((Comparable<Object>) a[base2], a, base1, len1, 0); in mergeAt() 477 len2 = gallopLeft((Comparable<Object>) a[base1 + len1 - 1], a, in mergeAt() 507 private static int gallopLeft(Comparable<Object> key, Object[] a, in gallopLeft() 577 private static int gallopRight(Comparable<Object> key, Object[] a, in gallopRight() 688 if (((Comparable) a[cursor2]).compareTo(tmp[cursor1]) < 0) { 710 count1 = gallopRight((Comparable) a[cursor2], tmp, cursor1, len1, 0); [all …]
|
D | Comparator.java | 266 default <U extends Comparable<? super U>> Comparator<T> thenComparing( in thenComparing() 342 public static <T extends Comparable<? super T>> Comparator<T> reverseOrder() { in reverseOrder() 360 public static <T extends Comparable<? super T>> Comparator<T> naturalOrder() { in naturalOrder() 468 public static <T, U extends Comparable<? super U>> Comparator<T> comparing( in comparing()
|
D | PriorityQueue.java | 661 Comparable<? super T> key = (Comparable<? super T>) x; 703 Comparable<? super T> key = (Comparable<? super T>)x; in siftDownComparable() 710 ((Comparable<? super T>) c).compareTo((T) es[right]) > 0) in siftDownComparable()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CRLSelectorTest.java | 119 selector.setIssuerNames(new TreeSet<Comparable>() { in test_setIssuerNamesLjava_util_Collection01() 122 public Iterator<Comparable> iterator() { in test_setIssuerNamesLjava_util_Collection01()
|
/libcore/ojluni/src/test/java/util/Collection/testlibrary/ |
D | CollectionAsserts.java | 74 public static<T extends Comparable<? super T>> void assertSorted(Iterator<T> i) { in assertSorted() 98 public static<T extends Comparable<? super T>> void assertSorted(Iterable<T> iter) { in assertSorted() 169 …public static<T extends Comparable<? super T>> void assertContentsUnordered(Iterable<T> actual, It… in assertContentsUnordered() 173 …public static<T extends Comparable<? super T>> void assertContentsUnordered(Iterable<T> actual, It… in assertContentsUnordered()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Comparable.java | 105 public interface Comparable<T> { interface
|
D | CharSequence.java | 290 if (cs1.getClass() == cs2.getClass() && cs1 instanceof Comparable) { in compare() 291 return ((Comparable<Object>) cs1).compareTo(cs2); in compare()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | Delayed.java | 49 public interface Delayed extends Comparable<Delayed> {
|
D | PriorityBlockingQueue.java | 352 Comparable<? super T> key = (Comparable<? super T>) x; in siftUpComparable() 389 Comparable<? super T> key = (Comparable<? super T>)x; in siftDownComparable() 396 ((Comparable<? super T>) c).compareTo((T) es[right]) > 0) in siftDownComparable()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldGenericReflectionCornerCases.java | 120 …static class MultipleBoundedWildcardUnEquality<T extends Object & Comparable<MultipleBoundedWildca… 139 assertEquals(Comparable.class, parameterizedType.getRawType()); in testMultipleBoundedWildcardUnEquality() 175 …static class MultipleBoundedWildcardEquality<T extends Object & Comparable<MultipleBoundedWildcard… 191 assertEquals(Comparable.class, parameterizedType.getRawType()); in testMultipleBoundedWildcard()
|
/libcore/ojluni/src/main/java/java/text/ |
D | CollationKey.java | 101 public abstract class CollationKey implements Comparable<CollationKey> {
|
/libcore/ojluni/src/test/java/util/HashMap/ |
D | ToArray.java | 52 …private static <T extends Comparable<T>> void checkToArray(String message, T[] expected, Collectio… in checkToArray() 67 …private static <T extends Comparable<T>> void checkToTypedArray(String message, T[] expected, T[] … in checkToTypedArray() 104 private static <T extends Comparable<T>> void checkToObjectArray(String message, T[] expected, in checkToObjectArray()
|
D | PutNullKey.java | 50 public static class CollidingHash implements Comparable<CollidingHash> {
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | Correct.java | 90 if (((Comparable)a1[y]).compareTo((Comparable)lowest) < 0) { in stupidSort()
|
/libcore/luni/src/main/java/android/system/ |
D | StructTimespec.java | 24 public final class StructTimespec implements Comparable<StructTimespec> {
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | SetOfTest.java | 177 private static<T extends Comparable<T>> void check_nonEmpty(Set<T> expected, Set<T> actual) { in check_nonEmpty() 183 private static<T extends Comparable<T>> void check_commonBehavior( in check_commonBehavior() 200 private static<T extends Comparable<T>> void assertUnmodifiable(Set<T> set, T example) { in assertUnmodifiable()
|
D | ListOfTest.java | 168 private static<T extends Comparable<T>> void check_nonEmpty(List<T> expected, List<T> actual) { in check_nonEmpty() 174 private static<T extends Comparable<T>> void assertBehaviorCommonToAllOfInstances( in assertBehaviorCommonToAllOfInstances() 199 private static<T extends Comparable<T>> void assertUnmodifiable(List<T> list, T example) { in assertUnmodifiable()
|
/libcore/ojluni/src/test/java/time/tck/java/time/serial/ |
D | TCKDurationSerialization.java | 82 assertTrue(Comparable.class.isAssignableFrom(Duration.class)); in test_interfaces()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | UUID.java | 31 public final class UUID implements java.io.Serializable, java.lang.Comparable<java.util.UUID> {
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Enum.annotated.java | 32 public abstract class Enum<E extends java.lang.Enum<E>> implements java.lang.Comparable<E>, java.io…
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | Item.java | 42 public final class Item extends Number implements Comparable<Item>, Serializable {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMapTest.java | 58 static class BI implements Comparable<BI> { 72 static class BS implements Comparable<BS> { 84 static class LexicographicList<E extends Comparable<E>> extends ArrayList<E> 85 implements Comparable<LexicographicList<E>> { 111 …static class ComparableCollidingObject extends CollidingObject implements Comparable<ComparableCol…
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | Collections.annotated.java | 35 public static <T extends java.lang.Comparable<? super T>> void sort(java.util.List<T> list) { throw… in sort() 39 public static <T> int binarySearch(java.util.List<? extends java.lang.Comparable<? super T>> list, … in binarySearch() 58 public static <T extends java.lang.Object & java.lang.Comparable<? super T>> T min(java.util.Collec… in min() 62 public static <T extends java.lang.Object & java.lang.Comparable<? super T>> T max(java.util.Collec… in max()
|
/libcore/ojluni/src/test/java/util/Map/ |
D | EntryHashCode.java | 66 entryData[0][i] = new Comparable<Object>() {
|