- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for incrementAndGet (0.12 sec)
-
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
@Override public Integer load(Integer key) { countLoad.incrementAndGet(); return key; } @GwtIncompatible // reload @Override public ListenableFuture<Integer> reload(Integer key, Integer oldValue) { countReload.incrementAndGet(); return immediateFuture(oldValue + 1); } public int getLoadCount() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheLoaderTest.java
@Override public Object load(Object key) { loadCount.incrementAndGet(); return new Object(); } @Override public ListenableFuture<Object> reload(Object key, Object oldValue) { reloadCount.incrementAndGet(); return immediateFuture(new Object()); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
assertEquals(0L, map.get(key)); assertFalse(map.containsKey(key)); assertEquals(1L, map.incrementAndGet(key)); assertEquals(1L, map.get(key)); assertEquals(0L, map.decrementAndGet(key)); assertEquals(0L, map.get(key)); assertTrue(map.containsKey(key)); assertEquals(1L, map.incrementAndGet(key)); assertEquals(1L, map.get(key)); } public void testGetAndIncrement() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 17.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
public void testBasics() { final AtomicInteger totalCalls = new AtomicInteger(); Runnable intCounter = new Runnable() { @Override public void run() { totalCalls.incrementAndGet(); // Make sure that no other tasks are scheduled to run while this is running. assertFalse(fakePool.hasNext()); } }; assertFalse(fakePool.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
public void testBasics() { final AtomicInteger totalCalls = new AtomicInteger(); Runnable intCounter = new Runnable() { @Override public void run() { totalCalls.incrementAndGet(); // Make sure that no other tasks are scheduled to run while this is running. assertFalse(fakePool.hasNext()); } }; assertFalse(fakePool.hasNext());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 11.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
int behavior = random.nextInt(4); if (behavior == 0) { // throw an exception exceptionCount.incrementAndGet(); throw new RuntimeException("fake exception for test"); } else if (behavior == 1) { // return null computeNullCount.incrementAndGet(); return null; } else if (behavior == 2) { // slight delay before returning
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 24.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java
long delta = random.nextInt(deltaRange); int behavior = random.nextInt(10); switch (behavior) { case 0: map.incrementAndGet(key); threadSum++; break; case 1: map.decrementAndGet(key); threadSum--;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 4.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerContext.java
this.activeThreadCount = activeThreadCount; } public long getAccessCount() { return accessCount.get(); } public long incrementAndGetAccessCount() { return accessCount.incrementAndGet(); } public long decrementAndGetAccessCount() { return accessCount.decrementAndGet(); } public CrawlerStatus getStatus() { return status; }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Sat Oct 12 01:40:57 UTC 2024 - 4.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 47.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
Multiset<String> multiset = new NoRemoveMultiset<String>() { @Override public int add(String element, int occurrences) { addCalls.incrementAndGet(); return super.add(element, occurrences); } }; ImmutableMultiset<String> adds = new ImmutableMultiset.Builder<String>().addCopies("x", 10).build(); multiset.addAll(adds);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.6K bytes - Viewed (0)