- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 64 for modifiable (0.32 seconds)
-
android/guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
import static com.google.common.collect.Sets.newHashSet; import static com.google.common.collect.testing.Helpers.mapEntry; import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE; import static com.google.common.truth.Truth.assertThat; import static java.util.Arrays.asList; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
EmptyIteratorTester() { super(3, MODIFIABLE, Collections.<Integer>emptySet(), IteratorTester.KnownOrder.KNOWN_ORDER); } } @GwtIncompatible // Only used by @GwtIncompatible code private abstract static class SingletonIteratorTester extends IteratorTester<Integer> { SingletonIteratorTester() { super(3, MODIFIABLE, singleton(1), IteratorTester.KnownOrder.KNOWN_ORDER); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
assertUnmodifiableIterableInTandem( unmodifiable.asMap().entrySet(), multimap.asMap().entrySet()); assertThat(unmodifiable.toString()).isEqualTo(multimap.toString()); assertEquals(multimap.hashCode(), unmodifiable.hashCode()); assertEquals(multimap, unmodifiable); assertThat(unmodifiable.asMap().get("bar")).containsExactly(5, -1);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 39.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
EmptyIteratorTester() { super(3, MODIFIABLE, Collections.<Integer>emptySet(), IteratorTester.KnownOrder.KNOWN_ORDER); } } @GwtIncompatible // Only used by @GwtIncompatible code private abstract static class SingletonIteratorTester extends IteratorTester<Integer> { SingletonIteratorTester() { super(3, MODIFIABLE, singleton(1), IteratorTester.KnownOrder.KNOWN_ORDER); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 57.3K bytes - Click Count (0) -
guava/src/com/google/common/cache/LoadingCache.java
* * @since 11.0 */ @GwtIncompatible @J2ktIncompatible void refresh(K key); /** * {@inheritDoc} * * <p><b>Note that although the view <i>is</i> modifiable, no method on the returned map will ever * cause entries to be automatically loaded.</b> */ @Override @J2ktIncompatible ConcurrentMap<K, V> asMap();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 8.5K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/LoadingCache.java
* * @since 11.0 */ @GwtIncompatible @J2ktIncompatible void refresh(K key); /** * {@inheritDoc} * * <p><b>Note that although the view <i>is</i> modifiable, no method on the returned map will ever * cause entries to be automatically loaded.</b> */ @Override @J2ktIncompatible ConcurrentMap<K, V> asMap();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 8.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1); LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader()); ConcurrentMap<Object, Object> map = cache.localCache; // modifiable map view assertThat(cache.stats()).isEqualTo(EMPTY_STATS); Object one = new Object(); assertThat(map.put(one, one)).isNull(); assertThat(map.get(one)).isSameInstanceAs(one);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 13.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java
CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1); LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader()); ConcurrentMap<Object, Object> map = cache.localCache; // modifiable map view assertThat(cache.stats()).isEqualTo(EMPTY_STATS); Object one = new Object(); assertThat(map.put(one, one)).isNull(); assertThat(map.get(one)).isSameInstanceAs(one);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 13.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/IterablesTest.java
import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows; import static com.google.common.collect.Sets.newHashSet; import static com.google.common.collect.testing.IteratorFeature.MODIFIABLE; import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE; import static com.google.common.truth.Truth.assertThat; import static java.util.Arrays.asList; import static java.util.Collections.emptyList;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 47.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
* suitable for testing that map entries cannot be modified via a nefarious implementation of * equals. This is used for testing unmodifiable collections of map entries; for example, it * should not be possible to access the raw (modifiable) map entry via a nefarious equals method. */ public static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> nefariousMapEntry(K key, V value) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 17.2K bytes - Click Count (0)