- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for MapIteratorCache (0.09 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 06 00:47:57 UTC 2021 - 4.7K bytes - Viewed (0) -
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) public final class MapCacheTest { private final MapIteratorCache<String, String> mapCache; public MapCacheTest(MapIteratorCache<String, String> mapCache) { this.mapCache = mapCache; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 16:23:26 UTC 2021 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/graph/MapRetrievalCache.java
import javax.annotation.CheckForNull; /** * 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 */ @ElementTypesAreNonnullByDefault final class MapRetrievalCache<K, V> extends MapIteratorCache<K, V> { // See the note about volatile in the superclass.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 3.2K 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) public final class MapCacheTest { private final MapIteratorCache<String, String> mapCache; public MapCacheTest(MapIteratorCache<String, String> mapCache) { this.mapCache = mapCache; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 16:23:26 UTC 2021 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapRetrievalCache.java
import javax.annotation.CheckForNull; /** * 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 */ @ElementTypesAreNonnullByDefault final class MapRetrievalCache<K, V> extends MapIteratorCache<K, V> { // See the note about volatile in the superclass.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 6.9K bytes - Viewed (0) -
guava/src/com/google/common/graph/StandardValueGraph.java
@ElementTypesAreNonnullByDefault 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 17:29:38 UTC 2024 - 6.1K bytes - Viewed (0)