- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 308 for run (0.11 sec)
-
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
assertSame(refreshKey, map.get(refreshKey)); new Thread() { @Override public void run() { cache.getUnchecked(getKey); getFinishedSignal.countDown(); } }.start(); new Thread() { @Override public void run() { cache.refresh(refreshKey); getFinishedSignal.countDown(); } }.start();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 86.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/BloomFilterTest.java
final double safetyFalsePositiveRate = 0.1; final Stopwatch stopwatch = Stopwatch.createStarted(); Runnable task = new Runnable() { @Override public void run() { do { // We can't have a GOLDEN_NOT_PRESENT_KEY because false positives are // possible! It's false negatives that can't happen.
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 21.3K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java
} @Param Impl impl; Executor executor; static final class CountingRunnable implements Runnable { AtomicInteger integer = new AtomicInteger(); @Override public void run() { integer.incrementAndGet(); } } CountingRunnable countingRunnable = new CountingRunnable(); Set<Thread> threads = new HashSet<>(); @BeforeExperiment void before() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java
} @Param Impl impl; Executor executor; static final class CountingRunnable implements Runnable { AtomicInteger integer = new AtomicInteger(); @Override public void run() { integer.incrementAndGet(); } } CountingRunnable countingRunnable = new CountingRunnable(); Set<Thread> threads = new HashSet<>(); @BeforeExperiment void before() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java
final int millis; volatile boolean completed; public SleepingRunnable(int millis) { this.millis = millis; } @Override public void run() { try { Thread.sleep(millis); } catch (InterruptedException wontHappen) { throw new AssertionError(); } completed = true; } }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 9.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
WeakReference<?> shadowLoaderReference = doTestClassUnloading(); GcFinalization.awaitClear(shadowLoaderReference); } // Create a second ClassLoader and use it to get a second version of the TestEnum class. // Run Enums.getIfPresent on that other TestEnum and then return a WeakReference containing the // new ClassLoader. If Enums.getIfPresent does caching that prevents the shadow TestEnum
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 20:10:02 GMT 2023 - 8.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
} return ~crc; } /** * Verifies that the crc of an array of byte data matches the expected value. * * @param expectedCrc the expected crc value. * @param data the data to run the checksum on. */ private static void assertCrc(int expectedCrc, byte[] data) { int actualCrc = Hashing.crc32c().hashBytes(data).asInt(); assertEquals(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Dec 23 18:30:33 GMT 2020 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTester.java
* slice()} views in the same way. * * @author Colin Decker */ @AndroidIncompatible // TODO(b/230620681): Make this available (even though we won't run it). public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> { private static final ImmutableList<Method> testMethods = getTestMethods(ByteSourceTester.class);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 8.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
this.inputFuture = checkNotNull(inputFuture); this.function = checkNotNull(function); } @Override @SuppressWarnings("CatchingUnchecked") // sneaky checked exception public final void run() { ListenableFuture<? extends I> localInputFuture = inputFuture; F localFunction = function; if (isCancelled() | localInputFuture == null | localFunction == null) { return; } inputFuture = null;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 01 21:46:34 GMT 2024 - 10.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java
this.onEquals = onEquals; this.onCompareTo = onCompareTo; } @Override public int hashCode() { onHashCode.run(); return delegateString.hashCode(); } @Override public boolean equals(@Nullable Object other) { onEquals.run(); return other instanceof CountsHashCodeAndEquals && delegateString.equals(((CountsHashCodeAndEquals) other).delegateString); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Oct 03 21:01:39 GMT 2023 - 8.6K bytes - Viewed (0)