- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for synchronizedMap (0.44 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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) -
android/guava/src/com/google/common/collect/Synchronized.java
return new SynchronizedMap<>(map, mutex); } private static class SynchronizedMap<K extends @Nullable Object, V extends @Nullable Object> extends SynchronizedObject implements Map<K, V> { transient @Nullable Set<K> keySet; transient @Nullable Collection<V> values; transient @Nullable Set<Map.Entry<K, V>> entrySet; SynchronizedMap(Map<K, V> delegate, @Nullable Object mutex) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 53K bytes - Click Count (0) -
guava/src/com/google/common/collect/Synchronized.java
} @VisibleForTesting static <K extends @Nullable Object, V extends @Nullable Object> Map<K, V> map( Map<K, V> map, @Nullable Object mutex) { return new SynchronizedMap<>(map, mutex); } private static class SynchronizedMap<K extends @Nullable Object, V extends @Nullable Object> extends SynchronizedObject implements Map<K, V> { transient @Nullable Set<K> keySet;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 56.9K 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) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
* Construct a version range from a specification. * */ public class VersionRange { private static final Map<String, VersionRange> CACHE_SPEC = Collections.synchronizedMap(new WeakHashMap<>()); private static final Map<String, VersionRange> CACHE_VERSION = Collections.synchronizedMap(new WeakHashMap<>()); private final ArtifactVersion recommendedVersion; private final List<Restriction> restrictions;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 19K 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) -
src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java
/** * Synchronized LRU cache for storing parent URL encodings. * Maps session+parent URL keys to their corresponding character encodings. */ Map<String, String> parentEncodingMap = Collections.synchronizedMap(new LruHashMap<>(1000)); /** * Gets the Fess configuration instance. * * @return the Fess configuration object */ FessConfig getFessConfig(); /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Dec 11 09:47:03 GMT 2025 - 14.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java
* @param value the parameter value to store */ public synchronized void putToInfoMap(final String key, final String value) { if (infoMap == null) { infoMap = Collections.synchronizedMap(new LinkedHashMap<>()); } logger.debug("infoMap: {}={} => {}", key, value, infoMap); infoMap.put(key, value); } /**Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 15.2K bytes - Click Count (0)