Searched refs:cmp (Results 1 - 25 of 50) sorted by relevance

12

/libcore/ojluni/src/main/java/java/net/
H A DInterfaceAddress.java125 InterfaceAddress cmp = (InterfaceAddress) obj;
126 if ( !(address == null ? cmp.address == null : address.equals(cmp.address)) )
128 if ( !(broadcast == null ? cmp.broadcast == null : broadcast.equals(cmp.broadcast)) )
130 if (maskLength != cmp.maskLength)
/libcore/ojluni/src/test/java/nio/file/attribute/
H A DFileTimeTest.java67 cmp(now, MILLISECONDS, now, MILLISECONDS, 0);
68 cmp(now, MILLISECONDS, now*1000L, MICROSECONDS, 0);
69 cmp(now, MILLISECONDS, now-1234, MILLISECONDS, 1);
70 cmp(now, MILLISECONDS, now+1234, MILLISECONDS, -1);
72 cmp(tomorrowInDays, DAYS, now, MILLISECONDS, 1);
73 cmp(now, MILLISECONDS, tomorrowInDays, DAYS, -1);
74 cmp(yesterdayInDays, DAYS, now, MILLISECONDS, -1);
75 cmp(now, MILLISECONDS, yesterdayInDays, DAYS, 1);
76 cmp(yesterdayInDays, DAYS, now, MILLISECONDS, -1);
78 cmp(Lon
265 static void cmp(long v1, TimeUnit u1, long v2, TimeUnit u2, int expected) { method in class:FileTimeTest
271 static void cmp(Instant ins, long v2, TimeUnit u2, int expected) { method in class:FileTimeTest
[all...]
/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronoZonedDateTime.java570 int cmp = Long.compare(toEpochSecond(), other.toEpochSecond());
571 if (cmp == 0) {
572 cmp = toLocalTime().getNano() - other.toLocalTime().getNano();
573 if (cmp == 0) {
574 cmp = toLocalDateTime().compareTo(other.toLocalDateTime());
575 if (cmp == 0) {
576 cmp = getZone().getId().compareTo(other.getZone().getId());
577 if (cmp == 0) {
578 cmp = getChronology().compareTo(other.getChronology());
583 return cmp;
[all...]
H A DChronoLocalDateTime.java500 int cmp = toLocalDate().compareTo(other.toLocalDate());
501 if (cmp == 0) {
502 cmp = toLocalTime().compareTo(other.toLocalTime());
503 if (cmp == 0) {
504 cmp = getChronology().compareTo(other.getChronology());
507 return cmp;
H A DChronoLocalDate.java704 int cmp = Long.compare(toEpochDay(), other.toEpochDay());
705 if (cmp == 0) {
706 cmp = getChronology().compareTo(other.getChronology());
708 return cmp;
H A DAbstractChronology.java141 int cmp = Long.compare(dateTime1.toLocalDate().toEpochDay(), dateTime2.toLocalDate().toEpochDay());
142 if (cmp == 0) {
143 cmp = Long.compare(dateTime1.toLocalTime().toNanoOfDay(), dateTime2.toLocalTime().toNanoOfDay());
145 return cmp;
152 int cmp = Long.compare(dateTime1.toEpochSecond(), dateTime2.toEpochSecond());
153 if (cmp == 0) {
154 cmp = Long.compare(dateTime1.toLocalTime().getNano(), dateTime2.toLocalTime().getNano());
156 return cmp;
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DConcurrentSkipListMap.java403 private boolean casHead(HeadIndex<K,V> cmp, HeadIndex<K,V> val) { argument
404 return U.compareAndSwapObject(this, HEAD, cmp, val);
446 boolean casValue(Object cmp, Object val) { argument
447 return U.compareAndSwapObject(this, VALUE, cmp, val);
453 boolean casNext(Node<K,V> cmp, Node<K,V> val) { argument
454 return U.compareAndSwapObject(this, NEXT, cmp, val);
579 final boolean casRight(Index<K,V> cmp, Index<K,V> val) { argument
580 return U.compareAndSwapObject(this, RIGHT, cmp, val);
663 private Node<K,V> findPredecessor(Object key, Comparator<? super K> cmp) { argument
677 if (cpr(cmp, ke
1225 findNear(K key, int rel, Comparator<? super K> cmp) argument
2609 tooLow(Object key, Comparator<? super K> cmp) argument
2615 tooHigh(Object key, Comparator<? super K> cmp) argument
2621 inBounds(Object key, Comparator<? super K> cmp) argument
2625 checkKeyBounds(K key, Comparator<? super K> cmp) argument
2635 isBeforeEnd(ConcurrentSkipListMap.Node<K,V> n, Comparator<? super K> cmp) argument
2654 loNode(Comparator<? super K> cmp) argument
2667 hiNode(Comparator<? super K> cmp) argument
[all...]
H A DPriorityBlockingQueue.java330 Comparator<? super E> cmp = comparator;
331 if (cmp == null)
334 siftDownUsingComparator(0, x, array, n, cmp);
369 Comparator<? super T> cmp) {
373 if (cmp.compare(x, (T) e) >= 0)
414 Comparator<? super T> cmp) {
421 if (right < n && cmp.compare((T) c, (T) array[right]) > 0)
423 if (cmp.compare(x, (T) c) <= 0)
440 Comparator<? super E> cmp = comparator;
441 if (cmp
368 siftUpUsingComparator(int k, T x, Object[] array, Comparator<? super T> cmp) argument
412 siftDownUsingComparator(int k, T x, Object[] array, int n, Comparator<? super T> cmp) argument
[all...]
H A DSynchronousQueue.java248 boolean casNext(SNode cmp, SNode val) { argument
249 return cmp == next &&
250 U.compareAndSwapObject(this, NEXT, cmp, val);
547 boolean casNext(QNode cmp, QNode val) { argument
548 return next == cmp &&
549 U.compareAndSwapObject(this, NEXT, cmp, val);
552 boolean casItem(Object cmp, Object val) { argument
553 return item == cmp &&
554 U.compareAndSwapObject(this, ITEM, cmp, val);
560 void tryCancel(Object cmp) { argument
632 casCleanMe(QNode cmp, QNode val) argument
[all...]
H A DConcurrentLinkedQueue.java196 static <E> boolean casItem(Node<E> node, E cmp, E val) { argument
197 return U.compareAndSwapObject(node, ITEM, cmp, val);
204 static <E> boolean casNext(Node<E> node, Node<E> cmp, Node<E> val) { argument
205 return U.compareAndSwapObject(node, NEXT, cmp, val);
922 private boolean casTail(Node<E> cmp, Node<E> val) { argument
923 return U.compareAndSwapObject(this, TAIL, cmp, val);
926 private boolean casHead(Node<E> cmp, Node<E> val) { argument
927 return U.compareAndSwapObject(this, HEAD, cmp, val);
H A DConcurrentLinkedDeque.java307 boolean casItem(E cmp, E val) { argument
308 return U.compareAndSwapObject(this, ITEM, cmp, val);
315 boolean casNext(Node<E> cmp, Node<E> val) { argument
316 return U.compareAndSwapObject(this, NEXT, cmp, val);
323 boolean casPrev(Node<E> cmp, Node<E> val) { argument
324 return U.compareAndSwapObject(this, PREV, cmp, val);
1601 private boolean casHead(Node<E> cmp, Node<E> val) { argument
1602 return U.compareAndSwapObject(this, HEAD, cmp, val);
1605 private boolean casTail(Node<E> cmp, Node<E> val) { argument
1606 return U.compareAndSwapObject(this, TAIL, cmp, va
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DMap.java501 * @param cmp the key {@link Comparator}
505 public static <K, V> Comparator<Map.Entry<K, V>> comparingByKey(Comparator<? super K> cmp) { argument
506 Objects.requireNonNull(cmp);
508 (c1, c2) -> cmp.compare(c1.getKey(), c2.getKey());
520 * @param cmp the value {@link Comparator}
524 public static <K, V> Comparator<Map.Entry<K, V>> comparingByValue(Comparator<? super V> cmp) { argument
525 Objects.requireNonNull(cmp);
527 (c1, c2) -> cmp.compare(c1.getValue(), c2.getValue());
/libcore/ojluni/src/main/java/java/nio/
H A DDoubleBuffer.java692 int cmp = Double.compare(this.get(i), that.get(j));
693 if (cmp != 0)
694 return cmp;
H A DFloatBuffer.java691 int cmp = compare(this.get(i), that.get(j));
692 if (cmp != 0)
693 return cmp;
H A DIntBuffer.java693 int cmp = compare(this.get(i), that.get(j));
694 if (cmp != 0)
695 return cmp;
H A DLongBuffer.java691 int cmp = compare(this.get(i), that.get(j));
692 if (cmp != 0)
693 return cmp;
H A DShortBuffer.java692 int cmp = compare(this.get(i), that.get(j));
693 if (cmp != 0)
694 return cmp;
H A DCharBuffer.java874 int cmp = compare(this.get(i), that.get(j));
875 if (cmp != 0)
876 return cmp;
/libcore/ojluni/src/main/java/java/nio/file/attribute/
H A DFileTime.java345 int cmp = Long.compare(secs, secsOther);
346 if (cmp != 0) {
347 return cmp;
349 cmp = Long.compare(toInstant().getNano(), other.toInstant().getNano());
350 if (cmp != 0) {
351 return cmp;
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DAtomicMarkableReference.java204 private boolean casPair(Pair<V> cmp, Pair<V> val) { argument
205 return U.compareAndSwapObject(this, PAIR, cmp, val);
H A DAtomicStampedReference.java204 private boolean casPair(Pair<V> cmp, Pair<V> val) { argument
205 return U.compareAndSwapObject(this, PAIR, cmp, val);
H A DStriped64.java126 final boolean cas(long cmp, long val) { argument
127 return U.compareAndSwapLong(this, VALUE, cmp, val);
177 final boolean casBase(long cmp, long val) { argument
178 return U.compareAndSwapLong(this, BASE, cmp, val);
/libcore/ojluni/src/main/java/java/time/
H A DMonthDay.java674 int cmp = (month - other.month);
675 if (cmp == 0) {
676 cmp = (day - other.day);
678 return cmp;
H A DLocalTime.java1478 int cmp = Integer.compare(hour, other.hour);
1479 if (cmp == 0) {
1480 cmp = Integer.compare(minute, other.minute);
1481 if (cmp == 0) {
1482 cmp = Integer.compare(second, other.second);
1483 if (cmp == 0) {
1484 cmp = Integer.compare(nano, other.nano);
1488 return cmp;
H A DOffsetDateTime.java171 int cmp = Long.compare(datetime1.toEpochSecond(), datetime2.toEpochSecond());
172 if (cmp == 0) {
173 cmp = datetime1.toLocalTime().getNano() - datetime2.toLocalTime().getNano();
175 return cmp;
1797 int cmp = compareInstant(this, other);
1798 if (cmp == 0) {
1799 cmp = toLocalDateTime().compareTo(other.toLocalDateTime());
1801 return cmp;

Completed in 309 milliseconds

12