Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for ConcurrentHashMap (0.28 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java

        final ModelProcessor modelLocator;
    
        final Map<String, String> userProperties = new ConcurrentHashMap<>();
    
        final Map<Path, Holder> modelByPath = new ConcurrentHashMap<>();
    
        final Map<GAKey, Holder> modelByGA = new ConcurrentHashMap<>();
    
        public static class Holder {
            private volatile boolean set;
            private volatile Model model;
    
            Holder() {}
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

        }
    
        /**
         * {@link ConcurrentHashMap}の新しいインスタンスを作成して返します。
         *
         * @param <K>
         *            {@link ConcurrentHashMap}のキーの型
         * @param <V>
         *            {@link ConcurrentHashMap}の値の型
         * @return {@link ConcurrentHashMap}の新しいインスタンス
         * @see ConcurrentHashMap#ConcurrentHashMap()
         */
        public static <K, V> ConcurrentHashMap<K, V> newConcurrentHashMap() {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 53.9K bytes
    - Viewed (0)
  3. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt

            val rootProjectDir: DirectoryProperty
        }
    
        @get:Inject
        abstract val execOperations: ExecOperations
    
        private
        val suspiciousDaemons = ConcurrentHashMap<String, MutableSet<String>>()
    
        private
        val daemonPids = ConcurrentHashMap.newKeySet<String>()
    
        private
        val logger = Logging.getLogger(DaemonTracker::class.java)
    
        override fun close() {
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Jan 08 12:45:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java

            ConcurrentHashMap<Object, Supplier<?>> cache;
            RepositoryCache repositoryCache = session.getCache();
            if (repositoryCache == null) {
                cache = new ConcurrentHashMap<>();
            } else {
                cache = (ConcurrentHashMap<Object, Supplier<?>>)
                        repositoryCache.computeIfAbsent(session, KEY, ConcurrentHashMap::new);
            }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

        private final TypeRegistry typeRegistry;
    
        private final ConcurrentHashMap<String, ArtifactHandler> allHandlers;
    
        @Inject
        public DefaultArtifactHandlerManager(TypeRegistry typeRegistry) {
            this.typeRegistry = requireNonNull(typeRegistry, "null typeRegistry");
            this.allHandlers = new ConcurrentHashMap<>();
        }
    
        @Override
        public void onEvent(Object event) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. 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)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        // GWT's ConcurrentHashMap is a wrapper around HashMap, but it rejects null keys, which matches
        // the behaviour of the non-GWT implementation of newConcurrentHashSet().
        // On the other hand HashSet might be better for code size if apps aren't
        // already using Collections.newSetFromMap and ConcurrentHashMap.
        return Collections.newSetFromMap(new ConcurrentHashMap<E, Boolean>());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 29 18:16:45 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java

    import java.util.Set;
    import java.util.concurrent.ConcurrentHashMap;
    
    import org.apache.maven.api.model.Model;
    
    /**
     * Holds all Models that are known to the reactor. This allows the project builder to resolve imported Models from the
     * reactor when building another project's effective model.
     *
     */
    class ReactorModelPool {
        private final Map<GAKey, Set<Model>> modelsByGa = new ConcurrentHashMap<>();
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.List;
    import java.util.Map;
    import java.util.Optional;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.stream.Collectors;
    
    import org.apache.maven.api.JavaPathType;
    import org.apache.maven.api.Type;
    import org.apache.maven.api.annotations.Nonnull;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.8K bytes
    - Viewed (0)
Back to top