Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomic8Test.java45 static Integer sumInteger(Integer x, Integer y) { in sumInteger() method in Atomic8Test
183 assertEquals(new Integer(1), a.getAndAccumulate(2, Atomic8Test::sumInteger)); in testReferenceGetAndAccumulate()
184 assertEquals(new Integer(3), a.getAndAccumulate(3, Atomic8Test::sumInteger)); in testReferenceGetAndAccumulate()
194 assertEquals(new Integer(7), a.accumulateAndGet(6, Atomic8Test::sumInteger)); in testReferenceAccumulateAndGet()
195 assertEquals(new Integer(10), a.accumulateAndGet(3, Atomic8Test::sumInteger)); in testReferenceAccumulateAndGet()
324 assertEquals(new Integer(1), a.getAndAccumulate(0, 2, Atomic8Test::sumInteger)); in testReferenceArrayGetAndAccumulate()
325 assertEquals(new Integer(3), a.getAndAccumulate(0, 3, Atomic8Test::sumInteger)); in testReferenceArrayGetAndAccumulate()
336 assertEquals(new Integer(7), a.accumulateAndGet(0, 6, Atomic8Test::sumInteger)); in testReferenceArrayAccumulateAndGet()
337 assertEquals(new Integer(10), a.accumulateAndGet(0, 3, Atomic8Test::sumInteger)); in testReferenceArrayAccumulateAndGet()
477 assertEquals(new Integer(1), a.getAndAccumulate(this, 2, Atomic8Test::sumInteger)); in testReferenceFieldUpdaterGetAndAccumulate()
[all …]