- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for testGetAndAdd (0.14 sec)
-
guava-tests/test/com/google/common/collect/CountTest.java
*/ @GwtCompatible @ElementTypesAreNonnullByDefault public class CountTest extends TestCase { public void testGet() { assertEquals(20, new Count(20).get()); } public void testGetAndAdd() { Count holder = new Count(20); assertEquals(20, holder.get()); holder.add(1); assertEquals(21, holder.get()); } public void testAddAndGet() { Count holder = new Count(20);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 1.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CountTest.java
*/ @GwtCompatible @ElementTypesAreNonnullByDefault public class CountTest extends TestCase { public void testGet() { assertEquals(20, new Count(20).get()); } public void testGetAndAdd() { Count holder = new Count(20); assertEquals(20, holder.get()); holder.add(1); assertEquals(21, holder.get()); } public void testAddAndGet() { Count holder = new Count(20);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Feb 19 20:34:55 UTC 2024 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
for (double x : VALUES) { assertBitEquals(prev, at.getAndSet(x)); prev = x; } } /** getAndAdd returns previous value and adds given value */ public void testGetAndAdd() { for (double x : VALUES) { for (double y : VALUES) { AtomicDouble a = new AtomicDouble(x); double z = a.getAndAdd(y); assertBitEquals(x, z);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 10.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java
for (double x : VALUES) { assertBitEquals(prev, aa.getAndSet(i, x)); prev = x; } } } /** getAndAdd returns previous value and adds given value */ public void testGetAndAdd() { AtomicDoubleArray aa = new AtomicDoubleArray(SIZE); for (int i : new int[] {0, SIZE - 1}) { for (double x : VALUES) { for (double y : VALUES) { aa.set(i, x);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 14.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
assertEquals(0L, map.get(key)); assertTrue(map.containsKey(key)); assertEquals(value, map.addAndGet(key, value)); assertEquals(value, map.get(key)); } public void testGetAndAdd() { AtomicLongMap<String> map = AtomicLongMap.create(); String key = "key"; long addend = random.nextInt(MAX_ADDEND); for (int i = 0; i < ITERATIONS; i++) { long before = map.get(key);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 17.4K bytes - Viewed (0)