Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ConcurrentHashMultiset (2.47 sec)

  1. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

      }
    
      private void testAddAndRemove(ConcurrentMap<String, AtomicInteger> map)
          throws ExecutionException, InterruptedException {
    
        ConcurrentHashMultiset<String> multiset = new ConcurrentHashMultiset<>(map);
        int nThreads = 20;
        int tasksPerThread = 10;
        int nTasks = nThreads * tasksPerThread;
        ExecutorService pool = newFixedThreadPool(nThreads);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

     *
     * <p><b>Note:</b> If your values are always positive and less than 2^31, you may wish to use a
     * {@link com.google.common.collect.Multiset} such as {@link
     * com.google.common.collect.ConcurrentHashMultiset} instead.
     *
     * <p><b>Warning:</b> Unlike {@code Multiset}, entries whose values are zero are not automatically
     * removed from the map. Instead they must be removed manually with {@link #removeAllZeros}.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        },
        ConcurrentHashMultisetImpl {
          @Override
          public <E extends Comparable<E>> Multiset<E> create(Collection<E> contents) {
            return ConcurrentHashMultiset.create(contents);
          }
        },
        ImmutableMultisetImpl {
          @Override
          public <E extends Comparable<E>> Multiset<E> create(Collection<E> contents) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top