- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for getAndIncrement (0.07 sec)
-
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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4.7K 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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReaderTest.java
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 04 17:27:14 UTC 2022 - 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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 04 17:27:14 UTC 2022 - 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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 4.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java
private static final Factory FACTORY = new Factory() { final AtomicLong nextCallId = new AtomicLong(1L); @Override public EventListener create(Call call) { long callId = nextCallId.getAndIncrement(); System.out.printf("%04d %s%n", callId, call.request().url()); return new PrintingEventListener(callId, System.nanoTime()); } }; final long callId; final long callStartNanos;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 16 23:20:49 UTC 2020 - 6.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImpl.java
indexingHelper.sendDocuments(searchEngineClient, docList); } executeTime += processingTime; } documentSize.getAndIncrement(); if (logger.isDebugEnabled()) { logger.debug("The number of an added document is {}.", documentSize.get()); } }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.9K bytes - Viewed (0) -
docs/features/events.md
public static final Factory FACTORY = new Factory() { final AtomicLong nextCallId = new AtomicLong(1L); @Override public EventListener create(Call call) { long callId = nextCallId.getAndIncrement(); System.out.printf("%04d %s%n", callId, call.request().url()); return new PrintingEventListener(callId, System.nanoTime()); } }; final long callId; final long callStartNanos;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 7.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
for (int i = 0; i < passedArgs.length; i++) { assertEquals( "Parameter #" + i + " of " + method + " not forwarded", passedArgs[i], args[i]); } called.getAndIncrement(); return returnValue; } void testInteraction(Function<? super T, ? extends T> wrapperFunction) { T proxy = Reflection.newProxy(interfaceType, this);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 9.1K bytes - Viewed (0)