- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 59 for ConcurrentMap (1.28 sec)
-
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap(); checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map); return newMap; } }, MapMakerWeakKeysStrongValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { ConcurrentMap<K, V> newMap = new MapMaker().weakKeys().makeMap();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 12.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java
} } } return null; } @SuppressWarnings("unchecked") private ConcurrentMap<Key, PluginVersionResult> getCache(PluginVersionRequest request) { SessionData data = request.getRepositorySession().getData(); return (ConcurrentMap<Key, PluginVersionResult>) data.computeIfAbsent(CACHE_KEY, () -> new ConcurrentHashMap<>(256)); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jan 29 08:17:07 UTC 2025 - 17.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java
* @since 2.0 */ @GwtCompatible public abstract class ForwardingConcurrentMap<K, V> extends ForwardingMap<K, V> implements ConcurrentMap<K, V> { /** Constructor for use by subclasses. */ protected ForwardingConcurrentMap() {} @Override protected abstract ConcurrentMap<K, V> delegate(); @CanIgnoreReturnValue @Override public @Nullable V putIfAbsent(K key, V value) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Feb 18 16:58:16 UTC 2025 - 2.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jul 18 17:30:19 UTC 2025 - 11.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
} }; } private static final String KEY = "puppies"; ConcurrentMap<String, AtomicInteger> backingMap; ConcurrentHashMultiset<String> multiset; @SuppressWarnings("unchecked") @Override protected void setUp() { backingMap = mock(ConcurrentMap.class); when(backingMap.isEmpty()).thenReturn(true); multiset = ConcurrentHashMultiset.create(backingMap);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 16.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* @since 20.0 */ public static <E> ConcurrentHashMultiset<E> create(ConcurrentMap<E, AtomicInteger> countMap) { checkArgument(countMap.isEmpty(), "the backing map (%s) must be empty", countMap); return new ConcurrentHashMultiset<>(countMap); } private ConcurrentHashMultiset(ConcurrentMap<E, AtomicInteger> countMap) { this.countMap = countMap; } // Query Operations
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 22.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
private static class TestMap extends ForwardingConcurrentMap<String, Integer> { final ConcurrentMap<String, Integer> delegate = new ConcurrentHashMap<>(); @Override protected ConcurrentMap<String, Integer> delegate() { return delegate; } } public void testPutIfAbsent() { TestMap map = new TestMap(); map.put("foo", 1);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") @NullMarked public class ConcurrentMapReplaceTester<K, V> extends AbstractMapTester<K, V> { @Override protected ConcurrentMap<K, V> getMap() { return (ConcurrentMap<K, V>) super.getMap(); } @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testReplace_supportedPresent() {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 3.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/beans/factory/BeanDescFactory.java
import static org.codelibs.core.collection.CollectionsUtil.putIfAbsent; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.util.concurrent.ConcurrentMap; import org.codelibs.core.beans.BeanDesc; import org.codelibs.core.beans.impl.BeanDescImpl; import org.codelibs.core.misc.DisposableUtil; /** * This class generates {@link BeanDesc}. * <p>Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.8K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/Cache.java
* have been newly added to {@link ConcurrentMap}! These are marked with "Since: 1.8" in the * {@code ConcurrentMap} documentation. They will not function correctly and it is impossible for * Guava to fix them until Guava is ready to <i>require</i> Java 8 for all users. */ ConcurrentMap<K, V> asMap(); /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8.3K bytes - Viewed (0)