Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for forcePut (0.21 seconds)

  1. guava/src/com/google/common/collect/BiMap.java

       *     previous entry. (If the bimap contains null values, then {@code forcePut}, like {@code
       *     put}, returns {@code null} both if the key is absent and if it is present with a null
       *     value.)
       */
      @CanIgnoreReturnValue
      @Nullable V forcePut(@ParametricNullness K key, @ParametricNullness V value);
    
      // Bulk Operations
    
      /**
       * {@inheritDoc}
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  2. 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)
  3. 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)
  4. android/guava/src/com/google/common/collect/BiMap.java

       *     previous entry. (If the bimap contains null values, then {@code forcePut}, like {@code
       *     put}, returns {@code null} both if the key is absent and if it is present with a null
       *     value.)
       */
      @CanIgnoreReturnValue
      @Nullable V forcePut(@ParametricNullness K key, @ParametricNullness V value);
    
      // Bulk Operations
    
      /**
       * {@inheritDoc}
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 17:32:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/EnumHashBiMap.java

      // TODO(b/192446998): Remove this override after tools understand nullness better.
      public @Nullable V forcePut(K key, @ParametricNullness V value) {
        return super.forcePut(key, value);
      }
    
      /** Returns the associated key type. */
      @GwtIncompatible
      public Class<K> keyType() {
        return keyTypeOrObjectUnderJ2cl;
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/EnumHashBiMap.java

      // TODO(b/192446998): Remove this override after tools understand nullness better.
      public @Nullable V forcePut(K key, @ParametricNullness V value) {
        return super.forcePut(key, value);
      }
    
      /** Returns the associated key type. */
      @GwtIncompatible
      public Class<K> keyType() {
        return keyTypeOrObjectUnderJ2cl;
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 5.2K bytes
    - Click Count (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

        super(delegate);
      }
    
      public abstract ImmutableBiMap<V, K> inverse();
    
      @Override
      public ImmutableSet<V> values() {
        return inverse().keySet();
      }
    
      public final @Nullable V forcePut(K key, V value) {
        throw new UnsupportedOperationException();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/HashBiMap.java

        } else {
          insertPlacingAtEndOfIterationOrder(newNode);
          rehashIfNecessary();
          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: Fri Dec 26 20:08:09 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/AbstractBiMap.java

      @Override
      public @Nullable V put(@ParametricNullness K key, @ParametricNullness V value) {
        return putInBothMaps(key, value, false);
      }
    
      @CanIgnoreReturnValue
      @Override
      public @Nullable V forcePut(@ParametricNullness K key, @ParametricNullness V value) {
        return putInBothMaps(key, value, true);
      }
    
      private @Nullable V putInBothMaps(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 15:50:50 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  10. 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)
Back to Top