Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MapIteratorCache (0.05 sec)

  1. android/guava/src/com/google/common/graph/MapIteratorCache.java

     * {@link #unmodifiableKeySet()}. By design, the cache is cleared when this structure is mutated. If
     * this structure is never mutated, it provides a thread-safe view of the backing map.
     *
     * <p>The {@link MapIteratorCache} assumes ownership of the backing map, and cannot guarantee
     * correctness in the face of external mutations to the backing map. As such, it is <b>strongly</b>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/MapCacheTest.java

    /** Tests for {@link MapIteratorCache} and {@link MapRetrievalCache}. */
    @AndroidIncompatible
    // TODO(cpovirk): Figure out Android JUnit 4 support. Does it work with Gingerbread? @RunWith?
    @RunWith(Parameterized.class)
    @NullUnmarked
    public final class MapCacheTest {
      private final MapIteratorCache<String, String> mapCache;
    
      public MapCacheTest(MapIteratorCache<String, String> mapCache) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/MapRetrievalCache.java

    import java.util.Map;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link MapIteratorCache} that adds additional caching. In addition to the caching provided by
     * {@link MapIteratorCache}, this structure caches values for the two most recently retrieved keys.
     *
     * @author James Sexton
     */
    final class MapRetrievalCache<K, V> extends MapIteratorCache<K, V> {
      // See the note about volatile in the superclass.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

         * The real purpose of this test is to produce a TSAN failure if MapIteratorCache is unsafe for
         * reads from multiple threads -- unsafe, in fact, even in the absence of a concurrent write.
         * The specific problem we had was unsafe reads of lastEntryReturnedBySomeIterator. (To fix the
         * problem, we've since marked that field as volatile.)
         *
         * When MapIteratorCache is used from Immutable* classes, the TSAN failure doesn't indicate a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top