Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for forcePut (0.18 seconds)

  1. android/guava-tests/test/com/google/common/collect/HashBiMapTest.java

      }
    
      public void testInsertionOrderAfterForcePut() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
        map.forcePut("quux", 1);
        assertThat(map.entrySet())
            .containsExactly(immutableEntry("bar", 2), immutableEntry("quux", 1))
            .inOrder();
      }
    
      public void testInsertionOrderAfterInverseForcePut() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/HashBiMapTest.java

      }
    
      public void testInsertionOrderAfterForcePut() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
        map.forcePut("quux", 1);
        assertThat(map.entrySet())
            .containsExactly(immutableEntry("bar", 2), immutableEntry("quux", 1))
            .inOrder();
      }
    
      public void testInsertionOrderAfterInverseForcePut() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

        setSucceeds(lastInInsertionOrder, size);
        setSucceeds(size, ENDPOINT);
        size++;
        modCount++;
        return null;
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V forcePut(@ParametricNullness K key, @ParametricNullness V value) {
        return put(key, value, true);
      }
    
      @CanIgnoreReturnValue
      private @Nullable K putInverse(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 37K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Maps.java

        }
    
        BiMap<K, V> unfiltered() {
          return (BiMap<K, V>) unfiltered;
        }
    
        @Override
        public @Nullable V forcePut(@ParametricNullness K key, @ParametricNullness V value) {
          checkArgument(apply(key, value));
          return unfiltered().forcePut(key, value);
        }
    
        @Override
        public BiMap<V, K> inverse() {
          return inverse;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Maps.java

        }
    
        BiMap<K, V> unfiltered() {
          return (BiMap<K, V>) unfiltered;
        }
    
        @Override
        public @Nullable V forcePut(@ParametricNullness K key, @ParametricNullness V value) {
          checkArgument(apply(key, value));
          return unfiltered().forcePut(key, value);
        }
    
        @Override
        public void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) {
          unfiltered()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

      @SuppressWarnings("DoNotCall")
      public void testForcePut() {
        BiMap<String, Integer> bimap = ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2));
        assertThrows(UnsupportedOperationException.class, () -> bimap.forcePut("three", 3));
      }
    
      public void testKeySet() {
        ImmutableBiMap<String, Integer> bimap =
            ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MapsTest.java

        /* UnsupportedOperationException on direct modifications. */
        assertThrows(UnsupportedOperationException.class, () -> unmod.put(4, "four"));
        assertThrows(UnsupportedOperationException.class, () -> unmod.forcePut(4, "four"));
        assertThrows(UnsupportedOperationException.class, () -> unmod.putAll(singletonMap(4, "four")));
    
        /* UnsupportedOperationException on indirect modifications. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  8. build-logic/dependency-modules/src/main/kotlin/gradlebuild.dependency-modules.gradle.kts

                    it.startsWith(group) &&
                    it.startsWith(module, group.length + 1)
            }
    
            if (isProvided) {
                substitution.useTarget("$to:$version", "Forceful upgrade of capability $module")
            }
        }
    }
    
    
    abstract class DependencyRemovalByNameRule @Inject constructor(
        private val moduleToRemove: Set<String>
    ) : ComponentMetadataRule {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 26 09:04:32 GMT 2026
    - 9.5K bytes
    - Click Count (0)
Back to Top