Home
last modified time | relevance | path

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

123456

/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()
462 int k = gallopRight((Comparable<Object>) a[base2], a, base1, len1, 0); in mergeAt()
473 len2 = gallopLeft((Comparable<Object>) a[base1 + len1 - 1], a, in mergeAt()
503 private static int gallopLeft(Comparable<Object> key, Object[] a, in gallopLeft()
573 private static int gallopRight(Comparable<Object> key, Object[] a, in gallopRight()
684 if (((Comparable) a[cursor2]).compareTo(tmp[cursor1]) < 0) {
706 count1 = gallopRight((Comparable) a[cursor2], tmp, cursor1, len1, 0);
[all …]
DComparator.java262 default <U extends Comparable<? super U>> Comparator<T> thenComparing( in thenComparing()
338 public static <T extends Comparable<? super T>> Comparator<T> reverseOrder() { in reverseOrder()
356 public static <T extends Comparable<? super T>> Comparator<T> naturalOrder() { in naturalOrder()
464 public static <T, U extends Comparable<? super U>> Comparator<T> comparing( in comparing()
DPriorityQueue.java652 Comparable<? super E> key = (Comparable<? super E>) x; in siftUpComparable()
694 Comparable<? super E> key = (Comparable<? super E>)x; in siftDownComparable()
701 ((Comparable<? super E>) c).compareTo((E) queue[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/main/java/java/util/concurrent/
DDelayed.java49 public interface Delayed extends Comparable<Delayed> {
DPriorityBlockingQueue.java356 Comparable<? super T> key = (Comparable<? super T>) x; in siftUpComparable()
394 Comparable<? super T> key = (Comparable<? super T>)x; in siftDownComparable()
401 ((Comparable<? super T>) c).compareTo((T) array[right]) > 0) in siftDownComparable()
/libcore/ojluni/src/main/java/java/lang/
DComparable.java96 public interface Comparable<T> { interface
DBoolean.java44 Comparable<Boolean>
/libcore/ojluni/src/main/java/java/text/
DCollationKey.java100 public abstract class CollationKey implements Comparable<CollationKey> {
/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/luni/src/main/java/android/system/
DStructTimespec.java24 public final class StructTimespec implements Comparable<StructTimespec> {
/libcore/ojluni/src/test/java/time/tck/java/time/serial/
DTCKDurationSerialization.java82 assertTrue(Comparable.class.isAssignableFrom(Duration.class)); in test_interfaces()
/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()
DOldTreeMapTest.java37 return -(((Comparable) o1).compareTo(o2)); in compare()
41 return (((Comparable) o1).compareTo(o2)) == 0; in equals()
46 public static class MockComparator<T extends Comparable<T>> implements
/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…
DBoolean.annotated.java31 public final class Boolean implements java.io.Serializable, java.lang.Comparable<java.lang.Boolean>…
/libcore/ojluni/src/main/java/java/nio/file/
DPath.java99 extends Comparable<Path>, Iterable<Path>, Watchable
/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/hiddenapi/java/lang/
DBoolean.java33 implements java.io.Serializable, java.lang.Comparable<java.lang.Boolean> {
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectStreamField.java31 public class ObjectStreamField implements java.lang.Comparable<java.lang.Object> {
/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java77 implements TemporalAmount, Comparable<MockSimplePeriod> {
/libcore/ojluni/src/test/java/time/tck/java/time/
DMockSimplePeriod.java77 implements TemporalAmount, Comparable<MockSimplePeriod> {

123456