Searched refs:twoStep (Results 1 – 1 of 1) sorted by relevance
/libcore/ojluni/src/test/java/util/Map/ |
D | Defaults.java | 536 static <T,U,V> BiFunction<T,U,V> twoStep(AtomicBoolean b, in twoStep() method in Defaults 598 assertNull(map.computeIfPresent(two, twoStep(b, f, g))); in testConcurrentMap_computeIfPresent_racy() 609 assertEquals(99L, (long)map.computeIfPresent(two, twoStep(b, f, g))); in testConcurrentMap_computeIfPresent_racy() 656 assertEquals(44L, (long)map.compute(two, twoStep(b, f, g))); in testConcurrentMap_compute_racy() 666 assertEquals(44L, (long)map.compute(two, twoStep(b, f, g))); in testConcurrentMap_compute_racy() 677 assertNull(map.compute(two, twoStep(b, f, g))); in testConcurrentMap_compute_racy() 707 assertEquals(45L, (long)map.merge(two, 3L, twoStep(b, f, g))); in testConcurrentMap_merge_racy() 713 assertEquals(55L, (long)map.merge(two, 55L, twoStep(b, f, g))); in testConcurrentMap_merge_racy()
|