- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 38 for ConcurrentHashMap (0.1 seconds)
-
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>()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jan 23 17:16:53 GMT 2026 - 5.3K bytes - Click Count (0) -
impl/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) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 08:42:00 GMT 2025 - 3.4K bytes - Click Count (0) -
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
private final OkHttpClient client; private final Set<HttpUrl> fetchedUrls = Collections.synchronizedSet(new LinkedHashSet<>()); private final BlockingQueue<HttpUrl> queue; private final ConcurrentHashMap<String, AtomicInteger> hostnames = new ConcurrentHashMap<>(); private final int hostLimit; public Crawler(OkHttpClient client, int queueLimit, int hostLimit) { this.client = client; this.queue = new LinkedBlockingQueue<>(queueLimit);
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jul 23 00:58:06 GMT 2025 - 5K bytes - Click Count (0) -
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() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/Maps.java
* @param value the value to be added to the <code>Map</code> * @return a {@literal Maps} for constructing a {@link ConcurrentHashMap} with the specified key and value */ public static <KEY, VALUE> Maps<KEY, VALUE> concurrentHashMap(final KEY key, final VALUE value) { return new Maps<>(new ConcurrentHashMap<KEY, VALUE>()).$(key, value); } /**
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 7.2K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java
package org.apache.maven.internal.impl; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import java.util.Objects; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import org.apache.maven.api.JavaPathType; import org.apache.maven.api.Type; import org.apache.maven.api.annotations.Nonnull; import org.apache.maven.api.services.LanguageRegistry;
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed May 14 04:47:58 GMT 2025 - 4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvoker.java
*/ public class ResidentMavenInvoker extends MavenInvoker { private final ConcurrentHashMap<String, MavenContext> residentContext; public ResidentMavenInvoker(Lookup protoLookup, @Nullable Consumer<LookupContext> contextConsumer) { super(protoLookup, contextConsumer); this.residentContext = new ConcurrentHashMap<>(); } @Override public void close() throws InvokerException {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 4.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java
* figure out what to do with <a * href="https://github.com/openjdk/jdk/blob/c25c4896ad9ef031e3cddec493aef66ff87c48a7/src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java#L4830">{@code * ConcurrentHashMap} support for {@code entrySet().add()}</a>. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getAddAllUnsupportedNonePresentMethod() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java
* figure out what to do with <a * href="https://github.com/openjdk/jdk/blob/c25c4896ad9ef031e3cddec493aef66ff87c48a7/src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java#L4830">{@code * ConcurrentHashMap} support for {@code entrySet().add()}</a>. */ @J2ktIncompatible @GwtIncompatible // reflection public static Method getAddAllUnsupportedNonePresentMethod() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7.9K bytes - Click Count (0) -
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() {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Jan 08 12:45:57 GMT 2024 - 3.4K bytes - Click Count (0)