Searched refs:addInt17 (Results 1 – 1 of 1) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | Atomic8Test.java | 41 static int addInt17(int x) { return x + 17; } in addInt17() method in Atomic8Test 117 assertEquals(1, a.getAndUpdate(Atomic8Test::addInt17)); in testIntGetAndUpdate() 118 assertEquals(18, a.getAndUpdate(Atomic8Test::addInt17)); in testIntGetAndUpdate() 128 assertEquals(18, a.updateAndGet(Atomic8Test::addInt17)); in testIntUpdateAndGet() 129 assertEquals(35, a.updateAndGet(Atomic8Test::addInt17)); in testIntUpdateAndGet() 254 assertEquals(1, a.getAndUpdate(0, Atomic8Test::addInt17)); in testIntArrayGetAndUpdate() 255 assertEquals(18, a.getAndUpdate(0, Atomic8Test::addInt17)); in testIntArrayGetAndUpdate() 266 assertEquals(18, a.updateAndGet(0, Atomic8Test::addInt17)); in testIntArrayUpdateAndGet() 267 assertEquals(35, a.updateAndGet(0, Atomic8Test::addInt17)); in testIntArrayUpdateAndGet() 399 assertEquals(1, a.getAndUpdate(this, Atomic8Test::addInt17)); in testIntegerFieldUpdaterGetAndUpdate() [all …]
|