Searched refs:addLong17 (Results 1 – 1 of 1) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | Atomic8Test.java | 40 static long addLong17(long x) { return x + 17; } in addLong17() method in Atomic8Test 74 assertEquals(1L, a.getAndUpdate(Atomic8Test::addLong17)); in testLongGetAndUpdate() 75 assertEquals(18L, a.getAndUpdate(Atomic8Test::addLong17)); in testLongGetAndUpdate() 85 assertEquals(18L, a.updateAndGet(Atomic8Test::addLong17)); in testLongUpdateAndGet() 86 assertEquals(35L, a.updateAndGet(Atomic8Test::addLong17)); in testLongUpdateAndGet() 206 assertEquals(1L, a.getAndUpdate(0, Atomic8Test::addLong17)); in testLongArrayGetAndUpdate() 207 assertEquals(18L, a.getAndUpdate(0, Atomic8Test::addLong17)); in testLongArrayGetAndUpdate() 218 assertEquals(18L, a.updateAndGet(0, Atomic8Test::addLong17)); in testLongArrayUpdateAndGet() 219 assertEquals(35L, a.updateAndGet(0, Atomic8Test::addLong17)); in testLongArrayUpdateAndGet() 347 assertEquals(1L, a.getAndUpdate(this, Atomic8Test::addLong17)); in testLongFieldUpdaterGetAndUpdate() [all …]
|