- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for unmodifiableKeySet (0.06 sec)
-
android/guava-tests/test/com/google/common/graph/MapCacheTest.java
@Test public void testKeySetIterator() { mapCache.put("A", "A_value"); mapCache.put("B", "B_value"); mapCache.put("C", "C_value"); assertThat(mapCache.unmodifiableKeySet()).hasSize(3); for (String key : mapCache.unmodifiableKeySet()) { assertThat(mapCache.get(key)).isEqualTo(key + "_value"); } } @Test public void testPutNewValue() { assertThat(mapCache.put("key", "value")).isNull();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/graph/MapIteratorCache.java
import java.util.Map.Entry; import java.util.Set; import org.jspecify.annotations.Nullable; /** * A map-like data structure that wraps a backing map and caches values while iterating through * {@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. *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/StandardNetwork.java
this.edgeToReferenceNode = new MapIteratorCache<>(edgeToReferenceNode); } @Override public Set<N> nodes() { return nodeConnections.unmodifiableKeySet(); } @Override public Set<E> edges() { return edgeToReferenceNode.unmodifiableKeySet(); } @Override public boolean isDirected() { return isDirected; } @Override public boolean allowsParallelEdges() {
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
this.edgeToReferenceNode = new MapIteratorCache<>(edgeToReferenceNode); } @Override public Set<N> nodes() { return nodeConnections.unmodifiableKeySet(); } @Override public Set<E> edges() { return edgeToReferenceNode.unmodifiableKeySet(); } @Override public boolean isDirected() { return isDirected; } @Override public boolean allowsParallelEdges() {
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
: new MapIteratorCache<N, GraphConnections<N, V>>(nodeConnections); this.edgeCount = checkNonNegative(edgeCount); } @Override public Set<N> nodes() { return nodeConnections.unmodifiableKeySet(); } @Override public boolean isDirected() { return isDirected; } @Override public boolean allowsSelfLoops() { return allowsSelfLoops; } @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 07 15:57:03 UTC 2025 - 6K bytes - Viewed (0)