Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for forceSet (0.15 sec)

  1. 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));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Maps.java

        BiMap<K, V> unfiltered() {
          return (BiMap<K, V>) unfiltered;
        }
    
        @Override
        @CheckForNull
        public 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Maps.java

        BiMap<K, V> unfiltered() {
          return (BiMap<K, V>) unfiltered;
        }
    
        @Override
        @CheckForNull
        public 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()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      @CheckForNull
      public final V forcePut(K key, V value) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Serialized type for all ImmutableBiMap instances. It captures the logical contents and they are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Synchronized.java

            }
            return valueSet;
          }
        }
    
        @Override
        @CheckForNull
        public V forcePut(@ParametricNullness K key, @ParametricNullness V value) {
          synchronized (mutex) {
            return delegate().forcePut(key, value);
          }
        }
    
        @Override
        public BiMap<V, K> inverse() {
          synchronized (mutex) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Synchronized.java

            }
            return valueSet;
          }
        }
    
        @Override
        @CheckForNull
        public V forcePut(@ParametricNullness K key, @ParametricNullness V value) {
          synchronized (mutex) {
            return delegate().forcePut(key, value);
          }
        }
    
        @Override
        public BiMap<V, K> inverse() {
          synchronized (mutex) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableBiMap.java

       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      @CheckForNull
      public final V forcePut(K key, V value) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Serialized type for all ImmutableBiMap instances. It captures the logical contents and they are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.6K bytes
    - Viewed (0)
Back to top