Searched refs:addInteger17 (Results 1 – 2 of 2) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | Atomic8Test.java | 42 static Integer addInteger17(Integer x) { in addInteger17() method in Atomic8Test 161 assertEquals(Integer.valueOf(1), a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate() 162 assertEquals(Integer.valueOf(18), a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate() 172 assertEquals(Integer.valueOf(18), a.updateAndGet(Atomic8Test::addInteger17)); in testReferenceUpdateAndGet() 173 assertEquals(Integer.valueOf(35), a.updateAndGet(Atomic8Test::addInteger17)); in testReferenceUpdateAndGet() 301 assertEquals(Integer.valueOf(1), a.getAndUpdate(0, Atomic8Test::addInteger17)); in testReferenceArrayGetAndUpdate() 302 assertEquals(Integer.valueOf(18), a.getAndUpdate(0, Atomic8Test::addInteger17)); in testReferenceArrayGetAndUpdate() 313 assertEquals(Integer.valueOf(18), a.updateAndGet(0, Atomic8Test::addInteger17)); in testReferenceArrayUpdateAndGet() 314 assertEquals(Integer.valueOf(35), a.updateAndGet(0, Atomic8Test::addInteger17)); in testReferenceArrayUpdateAndGet() 451 assertEquals(Integer.valueOf(1), a.getAndUpdate(this, Atomic8Test::addInteger17)); in testReferenceFieldUpdaterGetAndUpdate() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | Atomic8Test.java | 63 static Integer addInteger17(Integer x) { in addInteger17() method in Atomic8Test 182 assertEquals((Integer) 1, a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate() 183 assertEquals((Integer) 18, a.getAndUpdate(Atomic8Test::addInteger17)); in testReferenceGetAndUpdate() 193 assertEquals((Integer) 18, a.updateAndGet(Atomic8Test::addInteger17)); in testReferenceUpdateAndGet() 194 assertEquals((Integer) 35, a.updateAndGet(Atomic8Test::addInteger17)); in testReferenceUpdateAndGet() 322 assertEquals((Integer) 1, a.getAndUpdate(0, Atomic8Test::addInteger17)); in testReferenceArrayGetAndUpdate() 323 assertEquals((Integer) 18, a.getAndUpdate(0, Atomic8Test::addInteger17)); in testReferenceArrayGetAndUpdate() 334 assertEquals((Integer) 18, a.updateAndGet(0, Atomic8Test::addInteger17)); in testReferenceArrayUpdateAndGet() 335 assertEquals((Integer) 35, a.updateAndGet(0, Atomic8Test::addInteger17)); in testReferenceArrayUpdateAndGet() 472 assertEquals((Integer) 1, a.getAndUpdate(this, Atomic8Test::addInteger17)); in testReferenceFieldUpdaterGetAndUpdate() [all …]
|