Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/concurrent/tck/
DAtomic8Test.java95 assertEquals(1L, a.getAndUpdate(Atomic8Test::addLong17)); in testLongGetAndUpdate()
96 assertEquals(18L, a.getAndUpdate(Atomic8Test::addLong17)); in testLongGetAndUpdate()
138 assertEquals(1, a.getAndUpdate(Atomic8Test::addInt17)); in testIntGetAndUpdate()
139 assertEquals(18, a.getAndUpdate(Atomic8Test::addInt17)); in testIntGetAndUpdate()
182 assertEquals((Integer) 1, a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate()
183 assertEquals((Integer) 18, a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate()
227 assertEquals(1L, a.getAndUpdate(0, Atomic8Test::addLong17)); in testLongArrayGetAndUpdate()
228 assertEquals(18L, a.getAndUpdate(0, Atomic8Test::addLong17)); in testLongArrayGetAndUpdate()
275 assertEquals(1, a.getAndUpdate(0, Atomic8Test::addInt17)); in testIntArrayGetAndUpdate()
276 assertEquals(18, a.getAndUpdate(0, Atomic8Test::addInt17)); in testIntArrayGetAndUpdate()
[all …]
/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/annotations/hiddenapi/java/util/concurrent/atomic/
DAtomicInteger.java99 public final int getAndUpdate(java.util.function.IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicInteger
/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.java206 public final V getAndUpdate(T obj, UnaryOperator<V> updateFunction) { in getAndUpdate() method in AtomicReferenceFieldUpdater
DAtomicIntegerFieldUpdater.java286 public final int getAndUpdate(T obj, IntUnaryOperator updateFunction) { in getAndUpdate() method in AtomicIntegerFieldUpdater
DAtomicLongFieldUpdater.java289 public final long getAndUpdate(T obj, LongUnaryOperator updateFunction) { in getAndUpdate() method in AtomicLongFieldUpdater
/libcore/api/
Dcurrent.txt15161 method public final int getAndUpdate(java.util.function.IntUnaryOperator);
15184 method public final int getAndUpdate(int, java.util.function.IntUnaryOperator);
15205 method public final int getAndUpdate(T, java.util.function.IntUnaryOperator);
15229 method public final long getAndUpdate(java.util.function.LongUnaryOperator);
15252 method public final long getAndUpdate(int, java.util.function.LongUnaryOperator);
15273 method public final long getAndUpdate(T, java.util.function.LongUnaryOperator);
15301 method public final V getAndUpdate(java.util.function.UnaryOperator<V>);
15316 method public final E getAndUpdate(int, java.util.function.UnaryOperator<E>);
15331 method public final V getAndUpdate(T, java.util.function.UnaryOperator<V>);