Searched refs:getAndUpdate (Results 1 – 10 of 10) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | Atomic8Test.java | 74 assertEquals(1L, a.getAndUpdate(Atomic8Test::addLong17)); in testLongGetAndUpdate() 75 assertEquals(18L, a.getAndUpdate(Atomic8Test::addLong17)); in testLongGetAndUpdate() 117 assertEquals(1, a.getAndUpdate(Atomic8Test::addInt17)); in testIntGetAndUpdate() 118 assertEquals(18, a.getAndUpdate(Atomic8Test::addInt17)); in testIntGetAndUpdate() 161 assertEquals(new Integer(1), a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate() 162 assertEquals(new Integer(18), a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate() 206 assertEquals(1L, a.getAndUpdate(0, Atomic8Test::addLong17)); in testLongArrayGetAndUpdate() 207 assertEquals(18L, a.getAndUpdate(0, Atomic8Test::addLong17)); in testLongArrayGetAndUpdate() 254 assertEquals(1, a.getAndUpdate(0, Atomic8Test::addInt17)); in testIntArrayGetAndUpdate() 255 assertEquals(18, a.getAndUpdate(0, Atomic8Test::addInt17)); in testIntArrayGetAndUpdate() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicInteger.java | 219 public final int getAndUpdate(IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicInteger
|
D | AtomicReference.java | 158 public final V getAndUpdate(UnaryOperator<V> updateFunction) { in getAndUpdate() method in AtomicReference
|
D | AtomicLong.java | 235 public final long getAndUpdate(LongUnaryOperator updateFunction) { in getAndUpdate() method in AtomicLong
|
D | AtomicIntegerArray.java | 262 public final int getAndUpdate(int i, IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicIntegerArray
|
D | AtomicLongArray.java | 261 public final long getAndUpdate(int i, LongUnaryOperator updateFunction) { in getAndUpdate() method in AtomicLongArray
|
D | AtomicReferenceArray.java | 212 public final E getAndUpdate(int i, UnaryOperator<E> updateFunction) { in getAndUpdate() method in AtomicReferenceArray
|
D | AtomicReferenceFieldUpdater.java | 207 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() method in AtomicReferenceFieldUpdater
|
D | AtomicIntegerFieldUpdater.java | 287 public final int getAndUpdate(T obj, IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicIntegerFieldUpdater
|
D | AtomicLongFieldUpdater.java | 290 public final long getAndUpdate(T obj, LongUnaryOperator updateFunction) { in getAndUpdate() method in AtomicLongFieldUpdater
|