Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for ConcurrentHashMultiset (0.24 sec)

  1. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

        static final FieldSetter<? super ConcurrentHashMultiset<?>> COUNT_MAP_FIELD_SETTER =
            Serialization.getFieldSetter(ConcurrentHashMultiset.class, "countMap");
      }
    
      /**
       * Creates a new, empty {@code ConcurrentHashMultiset} using the default initial capacity, load
       * factor, and concurrency settings.
       */
      public static <E> ConcurrentHashMultiset<E> create() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      }
    
      public void testCreate() {
        ConcurrentHashMultiset<Integer> multiset = ConcurrentHashMultiset.create();
        assertTrue(multiset.isEmpty());
        reserializeAndAssert(multiset);
      }
    
      public void testCreateFromIterable() {
        Iterable<Integer> iterable = asList(1, 2, 2, 3, 4);
        ConcurrentHashMultiset<Integer> multiset = ConcurrentHashMultiset.create(iterable);
        assertEquals(2, multiset.count(2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      }
    
      public void testCreate() {
        ConcurrentHashMultiset<Integer> multiset = ConcurrentHashMultiset.create();
        assertTrue(multiset.isEmpty());
        reserializeAndAssert(multiset);
      }
    
      public void testCreateFromIterable() {
        Iterable<Integer> iterable = asList(1, 2, 2, 3, 4);
        ConcurrentHashMultiset<Integer> multiset = ConcurrentHashMultiset.create(iterable);
        assertEquals(2, multiset.count(2));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

      }
    
      private void testAddAndRemove(ConcurrentMap<String, AtomicInteger> map)
          throws ExecutionException, InterruptedException {
    
        final ConcurrentHashMultiset<String> multiset = new ConcurrentHashMultiset<>(map);
        int nThreads = 20;
        int tasksPerThread = 10;
        int nTasks = nThreads * tasksPerThread;
        ExecutorService pool = Executors.newFixedThreadPool(nThreads);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    
    import com.google.common.collect.ConcurrentHashMultiset;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableMultiset;
    import com.google.common.collect.Multiset;
    import com.google.common.testing.TestLogHandler;
    import java.util.Map;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    
    import com.google.common.collect.ConcurrentHashMultiset;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableMultiset;
    import com.google.common.collect.Multiset;
    import com.google.common.testing.TestLogHandler;
    import java.util.Map;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. android/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top