Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for ConcurrentHashMap (0.2 sec)

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

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link ForwardingConcurrentMap}.
     *
     * @author Jared Levy
     */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

     * existing multiset values.
     *
     * @author mike nonemacher
     */
    
    public class ConcurrentHashMultisetBasherTest extends TestCase {
    
      public void testAddAndRemove_ConcurrentHashMap() throws Exception {
        testAddAndRemove(new ConcurrentHashMap<String, AtomicInteger>());
      }
    
      public void testAddAndRemove_ConcurrentSkipListMap() throws Exception {
        testAddAndRemove(new ConcurrentSkipListMap<String, AtomicInteger>());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.8K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

            Map<Element, Element> map = new ConcurrentHashMap<>(keys.size(), 0.75f, 1);
            for (Element element : keys) {
              map.put(element, element);
            }
            return map;
          }
        },
        ConcurrentHM16 {
          @Override
          Map<Element, Element> create(Collection<Element> keys) {
            Map<Element, Element> map = new ConcurrentHashMap<>(keys.size(), 0.75f, 16);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

       * tests can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()} while we
       * figure out what to do with <a href="http://goo.gl/qJBruX">{@code ConcurrentHashMap} support for
       * {@code entrySet().add()}</a>.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getAddAllUnsupportedNonePresentMethod() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java

      private static final String TEST_KEY = "test key";
      private static final String TEST_VALUE = "test value";
    
      // Non-loading versions:
      private final Map<Object, Object> map = new MapMaker().makeMap(); // Returns ConcurrentHashMap
      private final Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
      private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build();
    
      @BeforeExperiment
      void setUp() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    
    /**
     * MapMaker emulation.
     *
     * @author Charles Fry
     */
    @ElementTypesAreNonnullByDefault
    public final class MapMaker {
      private int initialCapacity = 16;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapMakerTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Function;
    import com.google.common.testing.NullPointerTester;
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.CountDownLatch;
    import junit.framework.TestCase;
    
    /**
     * @author Charles Fry
     */
    @GwtCompatible(emulated = true)
    @J2ktIncompatible // MapMaker
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.concurrent.ConcurrentMap;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link ForwardingConcurrentMap}.
     *
     * @author Jared Levy
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

       * tests can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()} while we
       * figure out what to do with <a href="http://goo.gl/qJBruX">{@code ConcurrentHashMap} support for
       * {@code entrySet().add()}</a>.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getAddAllUnsupportedNonePresentMethod() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/OpenJdk6MapTests.java

            getContainsEntryWithIncomparableValueMethod());
      }
    
      @Override
      protected Collection<Method> suppressForConcurrentHashMap() {
        /*
         * The entrySet() of ConcurrentHashMap, unlike that of other Map
         * implementations, supports add() under JDK8. This seems problematic, but I
         * didn't see that discussed in the review, which included many other
         * changes: http://goo.gl/okTTdr
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.8K bytes
    - Viewed (0)
Back to top