- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 77 for ConcurrentMap (0.22 sec)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java
import static com.google.common.base.Preconditions.checkArgument; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; /** * MapMaker emulation. * * @author Charles Fry */ @ElementTypesAreNonnullByDefault public final class MapMaker { private int initialCapacity = 16; public MapMaker() {}
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 1.7K bytes - Viewed (0) -
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();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Mar 04 04:06:35 GMT 2022 - 12.3K bytes - Viewed (0) -
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();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Mar 04 04:06:35 GMT 2022 - 12.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import junit.framework.TestCase; /** * Tests for {@link ForwardingConcurrentMap}. * * @author Jared Levy */ public class ForwardingConcurrentMapTest extends TestCase { private static class TestMap extends ForwardingConcurrentMap<String, Integer> { final ConcurrentMap<String, Integer> delegate = new ConcurrentHashMap<>(); @Override
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.4K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
* {@link Object} values. */ @SuppressWarnings("checkstyle:linelength") private final ConcurrentMap<String, ConcurrentMap<String, ConcurrentMap<String, Object>>> pluginContextsByProjectAndPluginKey = new ConcurrentHashMap<>(); public void setProjects(List<MavenProject> projects) { if (!projects.isEmpty()) {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 16.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MapMaker.java
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import javax.annotation.CheckForNull; /** * A builder of {@link ConcurrentMap} instances that can have keys or values automatically wrapped * in {@linkplain WeakReference weak} references. * * <p>Usage example: * * <pre>{@code * ConcurrentMap<Request, Stopwatch> timers = new MapMaker() * .concurrencyLevel(4)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 13 14:30:51 GMT 2023 - 12.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* @since 20.0 */ public static <E> ConcurrentHashMultiset<E> create(ConcurrentMap<E, AtomicInteger> countMap) { return new ConcurrentHashMultiset<>(countMap); } @VisibleForTesting ConcurrentHashMultiset(ConcurrentMap<E, AtomicInteger> countMap) { checkArgument(countMap.isEmpty(), "the backing map (%s) must be empty", countMap); this.countMap = countMap;
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 20.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java
@ElementTypesAreNonnullByDefault 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() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java
@ElementTypesAreNonnullByDefault 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() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java
@ElementTypesAreNonnullByDefault public class ConcurrentMapPutIfAbsentTester<K, V> extends AbstractMapTester<K, V> { @Override protected ConcurrentMap<K, V> getMap() { return (ConcurrentMap<K, V>) super.getMap(); } @MapFeature.Require(SUPPORTS_PUT) public void testPutIfAbsent_supportedAbsent() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 4.8K bytes - Viewed (0)