Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newConcurrentMap (0.18 sec)

  1. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

       * immutable snapshot of all current subscribers to an event without any locking.
       */
      private final ConcurrentMap<Class<?>, CopyOnWriteArraySet<Subscriber>> subscribers =
          Maps.newConcurrentMap();
    
      /** The event bus this registry belongs to. */
      @Weak private final EventBus bus;
    
      SubscriberRegistry(EventBus bus) {
        this.bus = checkNotNull(bus);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      @Empty
      static <K, V> ConcurrentMap<K, V> generateConcurrentMap() {
        return Maps.newConcurrentMap();
      }
    
      @Generates
      static <K, V> ConcurrentMap<K, V> generateConcurrentMap(K key, V value) {
        ConcurrentMap<K, V> map = Maps.newConcurrentMap();
        map.put(key, value);
        return map;
      }
    
      @Generates
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. .idea/inspectionProfiles/Gradle.xml

          </replaceConfiguration>
          <replaceConfiguration name="Treat some Guava Collection factory methods as Deprecated" uuid="82f9f9ab-9c3b-367f-99ad-40841dc13819" text="com.google.common.collect.Maps.newConcurrentMap()" recursive="false" caseInsensitive="false" type="JAVA" pattern_context="default" reformatAccordingToStyle="true" shortenFQN="true" replacement="new java.util.concurrent.ConcurrentHashMap&lt;&gt;()">
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 26 21:49:47 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      @Empty
      static <K, V> ConcurrentMap<K, V> generateConcurrentMap() {
        return Maps.newConcurrentMap();
      }
    
      @Generates
      static <K, V> ConcurrentMap<K, V> generateConcurrentMap(K key, V value) {
        ConcurrentMap<K, V> map = Maps.newConcurrentMap();
        map.put(key, value);
        return map;
      }
    
      @Generates
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

       * default implementations and are "new"d upon get().
       */
      private static final ConcurrentMap<Class<?>, Class<?>> implementations = Maps.newConcurrentMap();
    
      private static <T> void setImplementation(Class<T> type, Class<? extends T> implementation) {
        checkArgument(type != implementation, "Don't register %s to itself!", type);
        checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

       * default implementations and are "new"d upon get().
       */
      private static final ConcurrentMap<Class<?>, Class<?>> implementations = Maps.newConcurrentMap();
    
      private static <T> void setImplementation(Class<T> type, Class<? extends T> implementation) {
        checkArgument(type != implementation, "Don't register %s to itself!", type);
        checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

              builder.add(method);
            }
          }
          return builder.build();
        }
    
        final Iterable<Method> getInstanceMethods(Class<?> cls) {
          ConcurrentMap<Signature, Method> map = Maps.newConcurrentMap();
          for (Method method : getVisibleMethods(cls)) {
            if (!Invokable.from(method).isStatic()) {
              map.putIfAbsent(new Signature(method), method);
            }
          }
          return map.values();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/NullPointerTester.java

              builder.add(method);
            }
          }
          return builder.build();
        }
    
        final Iterable<Method> getInstanceMethods(Class<?> cls) {
          ConcurrentMap<Signature, Method> map = Maps.newConcurrentMap();
          for (Method method : getVisibleMethods(cls)) {
            if (!Invokable.from(method).isStatic()) {
              map.putIfAbsent(new Signature(method), method);
            }
          }
          return map.values();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Maps.java

        return new LinkedHashMap<>(capacity(expectedSize));
      }
    
      /**
       * Creates a new empty {@link ConcurrentHashMap} instance.
       *
       * @since 3.0
       */
      public static <K, V> ConcurrentMap<K, V> newConcurrentMap() {
        return new ConcurrentHashMap<>();
      }
    
      /**
       * Creates a <i>mutable</i>, empty {@code TreeMap} instance using the natural ordering of its
       * elements.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Maps.java

        return new LinkedHashMap<>(capacity(expectedSize));
      }
    
      /**
       * Creates a new empty {@link ConcurrentHashMap} instance.
       *
       * @since 3.0
       */
      public static <K, V> ConcurrentMap<K, V> newConcurrentMap() {
        return new ConcurrentHashMap<>();
      }
    
      /**
       * Creates a <i>mutable</i>, empty {@code TreeMap} instance using the natural ordering of its
       * elements.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top