Home
last modified time | relevance | path

Searched refs:Comparable (Results 1 – 25 of 184) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/util/
DComparators.java47 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()
DComparableTimSort.java249 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 …]
DComparator.java266 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()
DPriorityQueue.java661 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/
DX509CRLSelectorTest.java119 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/
DCollectionAsserts.java74 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/
DComparable.java105 public interface Comparable<T> { interface
DCharSequence.java290 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/
DDelayed.java49 public interface Delayed extends Comparable<Delayed> {
DPriorityBlockingQueue.java352 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/
DOldGenericReflectionCornerCases.java120 …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/
DCollationKey.java101 public abstract class CollationKey implements Comparable<CollationKey> {
/libcore/ojluni/src/test/java/util/HashMap/
DToArray.java52 …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()
DPutNullKey.java50 public static class CollidingHash implements Comparable<CollidingHash> {
/libcore/ojluni/src/test/java/util/Arrays/
DCorrect.java90 if (((Comparable)a1[y]).compareTo((Comparable)lowest) < 0) { in stupidSort()
/libcore/luni/src/main/java/android/system/
DStructTimespec.java24 public final class StructTimespec implements Comparable<StructTimespec> {
/libcore/luni/src/test/java/libcore/java/util/
DSetOfTest.java177 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()
DListOfTest.java168 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/
DTCKDurationSerialization.java82 assertTrue(Comparable.class.isAssignableFrom(Duration.class)); in test_interfaces()
/libcore/ojluni/annotations/hiddenapi/java/util/
DUUID.java31 public final class UUID implements java.io.Serializable, java.lang.Comparable<java.util.UUID> {
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DEnum.annotated.java32 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/
DItem.java42 public final class Item extends Number implements Comparable<Item>, Serializable {
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMapTest.java58 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/
DCollections.annotated.java35 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/
DEntryHashCode.java66 entryData[0][i] = new Comparable<Object>() {

12345678