- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for MapIteratorCache (0.05 sec)
-
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 4.6K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.1K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.1K bytes - Viewed (0) -
android/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 Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/StandardNetwork.java
private final ElementOrder<E> edgeOrder; final MapIteratorCache<N, NetworkConnections<N, E>> nodeConnections; // We could make this a Map<E, EndpointPair<N>>. It would make incidentNodes(edge) slightly // faster, but also make Networks consume 5 to 20+% (increasing with average degree) more memory. final MapIteratorCache<E, N> edgeToReferenceNode; // referenceNode == source if directed
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/graph/StandardNetwork.java
private final ElementOrder<E> edgeOrder; final MapIteratorCache<N, NetworkConnections<N, E>> nodeConnections; // We could make this a Map<E, EndpointPair<N>>. It would make incidentNodes(edge) slightly // faster, but also make Networks consume 5 to 20+% (increasing with average degree) more memory. final MapIteratorCache<E, N> edgeToReferenceNode; // referenceNode == source if directed
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/graph/StandardValueGraph.java
*/ class StandardValueGraph<N, V> extends AbstractValueGraph<N, V> { private final boolean isDirected; private final boolean allowsSelfLoops; private final ElementOrder<N> nodeOrder; final MapIteratorCache<N, GraphConnections<N, V>> nodeConnections; long edgeCount; // must be updated when edges are added or removed /** Constructs a graph with the properties specified in {@code builder}. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 07 15:57:03 UTC 2025 - 6K bytes - Viewed (0)