Home
last modified time | relevance | path

Searched defs:cmp (Results 1 – 25 of 59) sorted by relevance

123

/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentSkipListMap.java465 private Node<K,V> findPredecessor(Object key, Comparator<? super K> cmp) { in findPredecessor()
507 Comparator<? super K> cmp = comparator; in findNode() local
542 Comparator<? super K> cmp = comparator; in doGet() local
599 Comparator<? super K> cmp = comparator; in doPut() local
703 Comparator<? super K> cmp) { in addIndices()
761 Comparator<? super K> cmp = comparator; in doRemove() local
1014 final Node<K,V> findNear(K key, int rel, Comparator<? super K> cmp) { in findNear()
1056 Comparator<? super K> cmp) { in findNearEntry()
1244 Comparator<? super K> cmp = comparator; in readObject() local
1715 Comparator<? super K> cmp = comparator; in equals() local
[all …]
DPriorityBlockingQueue.java328 final Comparator<? super E> cmp; in dequeue() local
365 int k, T x, Object[] es, Comparator<? super T> cmp) { in siftUpUsingComparator()
407 int k, T x, Object[] es, int n, Comparator<? super T> cmp) { in siftDownUsingComparator()
432 final Comparator<? super E> cmp; in heapify() local
476 final Comparator<? super E> cmp; in offer() local
622 final Comparator<? super E> cmp; in removeAt() local
DSynchronousQueue.java245 boolean casNext(SNode cmp, SNode val) { in casNext()
516 boolean casNext(QNode cmp, QNode val) { in casNext()
521 boolean casItem(Object cmp, Object val) { in casItem()
529 boolean tryCancel(Object cmp) { in tryCancel()
620 boolean casCleanMe(QNode cmp, QNode val) { in casCleanMe()
DLinkedTransferQueue.java410 final boolean casNext(Node cmp, Node val) { in casNext()
415 final boolean casItem(Object cmp, Object val) { in casItem()
446 final boolean tryMatch(Object cmp, Object val) { in tryMatch()
508 private boolean casTail(Node cmp, Node val) { in casTail()
514 private boolean casHead(Node cmp, Node val) { in casHead()
/libcore/ojluni/src/test/java/lang/invoke/
DSpreadCollectTest.java68 Comparator<Integer> cmp = (a, b) -> a - b; in testAsSpreaderExample() local
69 assertTrue((int) compare2FromArray.invoke(Arrays.copyOfRange(ints, 0, 2), cmp) < 0); in testAsSpreaderExample() local
71 assertTrue((int) compare2FromArray.invoke(Arrays.copyOfRange(ints, 2, 4), cmp) == 0); in testAsSpreaderExample() local
DJavaDocExamplesTest.java717 static boolean cmp(int i, int k) { return i < k; } in cmp() method in JavaDocExamplesTest
945 Comparator<Integer> cmp = (a, b) -> a - b; in testAsSpreader2() local
946 assertTrue((int) compare2FromArray.invoke(Arrays.copyOfRange(ints, 0, 2), cmp) < 0); in testAsSpreader2() local
948 assertTrue((int) compare2FromArray.invoke(Arrays.copyOfRange(ints, 2, 4), cmp) == 0); in testAsSpreader2() local
/libcore/ojluni/src/main/java/java/net/
DInterfaceAddress.java127 InterfaceAddress cmp = (InterfaceAddress) obj; in equals() local
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java128 final boolean cas(long cmp, long val) { in cas()
181 final boolean casBase(long cmp, long val) { in casBase()
DAtomicStampedReference.java204 private boolean casPair(Pair<V> cmp, Pair<V> val) { in casPair()
DAtomicMarkableReference.java204 private boolean casPair(Pair<V> cmp, Pair<V> val) { in casPair()
/libcore/ojluni/src/test/java/util/Collections/
DReverseOrder.java71 Comparator cmp = Collections.reverseOrder(); in main() local
DReverseOrder2.java81 private static Comparator<String> cmp = new Comparator<>() { field in ReverseOrder2
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java265 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) { in cmp() method in FileTimeTest
271 static void cmp(Instant ins, long v2, TimeUnit u2, int expected) { in cmp() method in FileTimeTest
/libcore/ojluni/src/main/java/java/util/
DPriorityQueue.java674 int k, T x, Object[] es, Comparator<? super T> cmp) { in siftUpUsingComparator()
721 int k, T x, Object[] es, int n, Comparator<? super T> cmp) { in siftDownUsingComparator()
746 final Comparator<? super E> cmp; in heapify() local
DReverseOrderSortedMapView.java35 final Comparator<? super K> cmp; field in ReverseOrderSortedMapView
DCollections.java274 int cmp = midVal.compareTo(key); in indexedBinarySearch() local
296 int cmp = midVal.compareTo(key); in iteratorBinarySearch() local
380 int cmp = c.compare(midVal, key); in indexedBinarySearch() local
400 int cmp = c.compare(midVal, key); in iteratorBinarySearch() local
DTreeMap.java386 int cmp = k.compareTo(p.key); in getEntry() local
410 int cmp = cpr.compare(k, p.key); in getEntryUsingComparator() local
431 int cmp = compare(key, p.key); in getCeilingEntry() local
464 int cmp = compare(key, p.key); in getFloorEntry() local
497 int cmp = compare(key, p.key); in getHigherEntry() local
528 int cmp = compare(key, p.key); in getLowerEntry() local
602 int cmp; in computeIfAbsent() local
693 int cmp; in compute() local
750 int cmp; in merge() local
824 int cmp; in put() local
/libcore/ojluni/src/test/java/util/concurrent/tck/
DPriorityQueueTest.java158 MyReverseComparator cmp = new MyReverseComparator(); in testConstructor7() local
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DPriorityBlockingQueue.java74 int k, T x, java.lang.Object[] array, java.util.Comparator<? super T> cmp) { in siftUpUsingComparator()
83 int k, T x, java.lang.Object[] array, int n, java.util.Comparator<? super T> cmp) { in siftDownUsingComparator()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java707 int cmp = Long.compare(toEpochDay(), other.toEpochDay()); in compareTo() local
DChronoLocalDateTime.java507 int cmp = toLocalDate().compareTo(other.toLocalDate()); in compareTo() local
DChronoZonedDateTime.java577 int cmp = Long.compare(toEpochSecond(), other.toEpochSecond()); in compareTo() local
/libcore/ojluni/src/main/java/java/time/
DMonthDay.java675 int cmp = (month - other.month); in compareTo() local
DOffsetDateTime.java171 int cmp = Long.compare(datetime1.toEpochSecond(), datetime2.toEpochSecond()); in compareInstant() local
1803 int cmp = compareInstant(this, other); in compareTo() local
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java345 int cmp = Long.compare(secs, secsOther); in compareTo() local

123