- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for starks (0.16 sec)
-
android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java
MapsImplEnum mapsImpl; /** * A map of contents pre-created before experiment starts to only measure map creation cost. The * implementation for the creation of contents is independent and could be different from that of * the map under test. */ Map<Element, Element> contents; /** Map pre-created before experiment starts to only measure iteration cost during experiment. */ Map<Element, Element> map;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Dec 20 15:07:46 GMT 2019 - 3.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingTest.java
} } private void checkConsistentHashCorrectness(long hashCode) { int last = 0; for (int shards = 1; shards <= 100000; shards++) { int b = Hashing.consistentHash(hashCode, shards); if (b != last) { assertEquals(shards - 1, b); last = b; } } } public void testConsistentHash_probabilities() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 26.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java
int nThreads = 20; int tasksPerThread = 10; int nTasks = nThreads * tasksPerThread; ExecutorService pool = Executors.newFixedThreadPool(nThreads); ImmutableList<String> keys = ImmutableList.of("a", "b", "c"); try { List<Future<int[]>> futures = Lists.newArrayListWithExpectedSize(nTasks); for (int i = 0; i < nTasks; i++) { futures.add(pool.submit(new MutateTask(multiset, keys))); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
} CacheStats stats = cache.stats(); assertEquals(removalListener.size(), stats.evictionCount()); assertEquals(computeCount.get(), stats.loadSuccessCount()); assertEquals(exceptionCount.get() + computeNullCount.get(), stats.loadExceptionCount()); // each computed value is still in the cache, or was passed to the removal listener
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Oct 03 20:10:02 GMT 2023 - 23.2K bytes - Viewed (0) -
guava/src/com/google/common/base/internal/Finalizer.java
/** Name of FinalizableReference.class. */ private static final String FINALIZABLE_REFERENCE = "com.google.common.base.FinalizableReference"; /** * Starts the Finalizer thread. FinalizableReferenceQueue calls this method reflectively. * * @param finalizableReferenceClass FinalizableReference.class. * @param queue a reference queue that the thread will poll.
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Aug 23 12:54:09 GMT 2023 - 9.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashMultimapTest.java
CollectionSize.ANY) .createTestSuite()); suite.addTestSuite(HashMultimapTest.class); return suite; } /* * The behavior of toString() is tested by TreeMultimap, which shares a * lot of code with HashMultimap and has deterministic iteration order. */ public void testCreate() { HashMultimap<String, Integer> multimap = HashMultimap.create(); multimap.put("foo", 1);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
T result = valueOrNull; valueOrNull = null; // We put the common case first, even though it's unlikely to matter if the code is run much: // https://shipilev.net/jvm/anatomy-quarks/28-frequency-based-code-layout/ if (result != null) { return result; } throw new NoSuchElementException(); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 18:43:01 GMT 2024 - 51.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java
sb.append(DELIMITER_STRING); } sb.append(comp); append = true; } dummy ^= sb.toString().length(); } return dummy; } /** * Starts with an empty delimiter and changes to the desired value at the end of the iteration. */ @Benchmark int assignDelimiter(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/QuantilesAlgorithm.java
+ positionFrac * (dataset[positionFloor + 1] - dataset[positionFloor]); } } }, /** * Uses quickselect. When calculating multiple quantiles, each quickselect starts from scratch. */ QUICKSELECT { @Override double singleQuantile(int index, int scale, double[] dataset) { long numerator = (long) index * (dataset.length - 1);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 01 16:30:37 GMT 2022 - 7.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java
+ positionFrac * (dataset[positionFloor + 1] - dataset[positionFloor]); } } }, /** * Uses quickselect. When calculating multiple quantiles, each quickselect starts from scratch. */ QUICKSELECT { @Override double singleQuantile(int index, int scale, double[] dataset) { long numerator = (long) index * (dataset.length - 1);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 01 16:30:37 GMT 2022 - 7.1K bytes - Viewed (0)