Home
last modified time | relevance | path

Searched refs:getAndUpdate (Results 1 – 10 of 10) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomic8Test.java74 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/
DAtomicInteger.java219 public final int getAndUpdate(IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicInteger
DAtomicReference.java158 public final V getAndUpdate(UnaryOperator<V> updateFunction) { in getAndUpdate() method in AtomicReference
DAtomicLong.java235 public final long getAndUpdate(LongUnaryOperator updateFunction) { in getAndUpdate() method in AtomicLong
DAtomicIntegerArray.java262 public final int getAndUpdate(int i, IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicIntegerArray
DAtomicLongArray.java261 public final long getAndUpdate(int i, LongUnaryOperator updateFunction) { in getAndUpdate() method in AtomicLongArray
DAtomicReferenceArray.java212 public final E getAndUpdate(int i, UnaryOperator<E> updateFunction) { in getAndUpdate() method in AtomicReferenceArray
DAtomicReferenceFieldUpdater.java207 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() method in AtomicReferenceFieldUpdater
DAtomicIntegerFieldUpdater.java287 public final int getAndUpdate(T obj, IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicIntegerFieldUpdater
DAtomicLongFieldUpdater.java290 public final long getAndUpdate(T obj, LongUnaryOperator updateFunction) { in getAndUpdate() method in AtomicLongFieldUpdater