- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for MapMakerInternalMap (0.06 sec)
-
android/guava/src/com/google/common/collect/MapMakerInternalMap.java
"nullness", // too much trouble for the payoff }) @NullUnmarked // TODO(cpovirk): Annotate for nullness. final class MapMakerInternalMap< K, V, E extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>> extends AbstractMap<K, V> implements ConcurrentMap<K, V>, Serializable { /*
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 89.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
package com.google.common.collect; import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD; import static com.google.common.truth.Truth.assertThat; import com.google.common.base.Equivalence; import com.google.common.collect.MapMakerInternalMap.InternalEntry; import com.google.common.collect.MapMakerInternalMap.Segment; import com.google.common.collect.MapMakerInternalMap.Strength;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 35.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java
package com.google.common.collect; import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD; import static com.google.common.truth.Truth.assertThat; import com.google.common.base.Equivalence; import com.google.common.collect.MapMakerInternalMap.InternalEntry; import com.google.common.collect.MapMakerInternalMap.Segment; import com.google.common.collect.MapMakerInternalMap.Strength;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 35.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
static final class InternerImpl<E> implements Interner<E> { // MapMaker is our friend, we know about this type @VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map; private InternerImpl(MapMaker mapMaker) { this.map = MapMakerInternalMap.createWithDummyValues(mapMaker.keyEquivalence(Equivalence.equals())); } @Override public E intern(E sample) { while (true) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java
* limitations under the License. */ package com.google.common.collect; import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG; import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK; import static com.google.common.testing.SerializableTester.reserialize; import static com.google.common.testing.SerializableTester.reserializeAndAssert;
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-tests/test/com/google/common/collect/BenchmarkHelpers.java
public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { // We use a "custom" equivalence to force MapMaker to make a MapMakerInternalMap. ConcurrentMap<K, V> newMap = new MapMaker().keyEquivalence(Equivalence.equals()).makeMap(); checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map); return newMap; } }, MapMakerStrongKeysWeakValues { @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 12.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interners.java
static final class InternerImpl<E> implements Interner<E> { // MapMaker is our friend, we know about this type @VisibleForTesting final MapMakerInternalMap<E, Dummy, ?, ?> map; private InternerImpl(MapMaker mapMaker) { this.map = MapMakerInternalMap.createWithDummyValues(mapMaker.keyEquivalence(Equivalence.equals())); } @Override public E intern(E sample) { while (true) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/InternersTest.java
package com.google.common.collect; import static org.junit.Assert.assertThrows; import com.google.common.base.Function; import com.google.common.collect.Interners.InternerImpl; import com.google.common.collect.MapMakerInternalMap.Strength; import com.google.common.testing.GcFinalization; import com.google.common.testing.NullPointerTester; import java.lang.ref.WeakReference; import junit.framework.TestCase;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 4.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java
testAddAndRemove(new ConcurrentSkipListMap<>()); } public void testAddAndRemove_mapMakerMap() throws Exception { MapMaker mapMaker = new MapMaker(); // force MapMaker to use its own MapMakerInternalMap mapMaker.useCustomMap = true; testAddAndRemove(mapMaker.makeMap()); } private void testAddAndRemove(ConcurrentMap<String, AtomicInteger> map) throws ExecutionException, InterruptedException {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 22:42:14 UTC 2025 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/InternersTest.java
package com.google.common.collect; import static org.junit.Assert.assertThrows; import com.google.common.base.Function; import com.google.common.collect.Interners.InternerImpl; import com.google.common.collect.MapMakerInternalMap.Strength; import com.google.common.testing.GcFinalization; import com.google.common.testing.NullPointerTester; import java.lang.ref.WeakReference; import junit.framework.TestCase;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Dec 08 17:02:07 UTC 2025 - 4.3K bytes - Viewed (0)