- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for synchronizedMap (0.07 seconds)
-
src/main/java/org/codelibs/core/collection/LruHashMap.java
* it must be synchronized externally. * </p> * <p> * For thread-safe usage, wrap with {@link java.util.Collections#synchronizedMap(Map)}: * </p> * <pre> * Map<K, V> syncMap = Collections.synchronizedMap(new LruHashMap<>(100)); * </pre> * <p> * Alternatively, for high-concurrency scenarios, consider implementing a customCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
import java.net.UnknownHostException import java.util.Collections import okio.Buffer class FakeDns : Dns { private val hostAddresses: MutableMap<String, List<InetAddress>> = Collections.synchronizedMap(mutableMapOf()) private val requestedHosts: MutableList<String> = Collections.synchronizedList(mutableListOf()) private var nextAddress = 0xff000064L // 255.0.0.100 in IPv4; ::ff00:64 in IPv6.Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Feb 04 20:20:29 GMT 2026 - 2.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionResult.java
private DependencyResolutionResult dependencyResolutionResult; private final List<Throwable> exceptions = new CopyOnWriteArrayList<>(); private final Map<MavenProject, BuildSummary> buildSummaries = Collections.synchronizedMap(new IdentityHashMap<>()); private boolean canResume = false; @Override public MavenExecutionResult setProject(MavenProject project) { this.project = project; return this;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 3.4K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java
*/ @Deprecated public class ConsoleMavenTransferListener extends AbstractMavenTransferListener { private final Map<TransferResourceIdentifier, TransferResourceAndSize> transfers = Collections.synchronizedMap(new LinkedHashMap<TransferResourceIdentifier, TransferResourceAndSize>()); private final boolean printResourceNames; private int lastLength;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Apr 03 11:23:19 GMT 2025 - 5.7K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/MapBenchmark.java
return unmodifiableMap(Hash.create(keys)); } }, SyncHM { @Override Map<Element, Element> create(Collection<Element> keys) { return Collections.synchronizedMap(Hash.create(keys)); } }, Tree { @Override Map<Element, Element> create(Collection<Element> keys) { Map<Element, Element> map = Maps.newTreeMap();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.8K bytes - Click Count (0)