- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for getAndIncrement (0.07 sec)
-
android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-25 18:05 - 20.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-25 18:05 - 21.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-25 18:05 - 21.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
public void testExecute_idempotent() { final AtomicInteger runCalled = new AtomicInteger(); list.add( new Runnable() { @Override public void run() { runCalled.getAndIncrement(); } }, directExecutor()); list.execute(); assertEquals(1, runCalled.get()); list.execute(); assertEquals(1, runCalled.get()); }
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-18 22:10 - 4.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
assertEquals(0L, map.get(key)); assertFalse(map.containsKey(key)); assertEquals(0L, map.getAndIncrement(key)); assertEquals(1L, map.get(key)); assertEquals(1L, map.getAndDecrement(key)); assertEquals(0L, map.get(key)); assertTrue(map.containsKey(key)); assertEquals(0L, map.getAndIncrement(key)); assertEquals(1L, map.get(key)); } public void testDecrementAndGet() {
Registered: 2024-11-01 12:43 - Last Modified: 2024-02-13 14:28 - 17.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java
public void testExecute_idempotent() { final AtomicInteger runCalled = new AtomicInteger(); list.add( new Runnable() { @Override public void run() { runCalled.getAndIncrement(); } }, directExecutor()); list.execute(); assertEquals(1, runCalled.get()); list.execute(); assertEquals(1, runCalled.get()); }
Registered: 2024-11-01 12:43 - Last Modified: 2024-10-18 22:10 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java
Registered: 2024-11-08 09:08 - Last Modified: 2024-02-22 01:36 - 8.9K bytes - Viewed (0) -
guava/src/com/google/common/hash/LongAddables.java
public static LongAddable create() { return SUPPLIER.get(); } private static final class PureJavaLongAddable extends AtomicLong implements LongAddable { @Override public void increment() { getAndIncrement(); } @Override public void add(long x) { getAndAdd(x); } @Override public long sum() { return get(); } }
Registered: 2024-11-01 12:43 - Last Modified: 2022-01-04 17:27 - 1.9K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/LongAddables.java
public static LongAddable create() { return SUPPLIER.get(); } private static final class PureJavaLongAddable extends AtomicLong implements LongAddable { @Override public void increment() { getAndIncrement(); } @Override public void add(long x) { getAndAdd(x); } @Override public long sum() { return get(); } }
Registered: 2024-11-01 12:43 - Last Modified: 2022-01-04 17:27 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java
case 2: map.addAndGet(key, delta); threadSum += delta; break; case 3: map.getAndIncrement(key); threadSum++; break; case 4: map.getAndDecrement(key); threadSum--;
Registered: 2024-11-01 12:43 - Last Modified: 2024-02-13 14:28 - 4.2K bytes - Viewed (0)