Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for replaceValue (0.17 sec)

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

      }
    
      @Override
      public SortedSet<V> removeAll(@CheckForNull Object key) {
        return delegate().removeAll(key);
      }
    
      @Override
      public SortedSet<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        return delegate().replaceValues(key, values);
      }
    
      @Override
      @CheckForNull
      public Comparator<? super V> valueComparator() {
        return delegate().valueComparator();
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractSetMultimap.java

       *
       * <p>Any duplicates in {@code values} will be stored in the multimap once.
       */
      @CanIgnoreReturnValue
      @Override
      public Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        return (Set<V>) super.replaceValues(key, values);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>Though the method signature doesn't say so explicitly, the returned map has {@link Set}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractListMultimap.java

       * Multimap} interface.
       */
      @CanIgnoreReturnValue
      @Override
      public List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        return (List<V>) super.replaceValues(key, values);
      }
    
      /**
       * Stores a key-value pair in the multimap.
       *
       * @param key key to store in the multimap
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractListMultimap.java

       * Multimap} interface.
       */
      @CanIgnoreReturnValue
      @Override
      public List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        return (List<V>) super.replaceValues(key, values);
      }
    
      /**
       * Stores a key-value pair in the multimap.
       *
       * @param key key to store in the multimap
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/SortedSetMultimap.java

     * multimap's keys. See the {@link Multimap} documentation for information common to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
     * SortedSet} of values, while {@link Multimap#entries()} returns a {@link Set} of map entries.
     * Though the method signature doesn't say so explicitly, the map returned by {@link #asMap} has
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #replaceValues()
        try {
          multimap.replaceValues(sampleKey, sampleValueAsCollection);
          fail("replaceValues succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SynchronizedMultimapTest.java

          assertTrue(Thread.holdsLock(mutex));
          return super.putAll(map);
        }
    
        @Override
        public Set<V> replaceValues(@Nullable K key, Iterable<? extends V> values) {
          assertTrue(Thread.holdsLock(mutex));
          return super.replaceValues(key, values);
        }
    
        @Override
        public boolean remove(@Nullable Object key, @Nullable Object value) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return delegate().putAll(multimap);
          }
        }
    
        @Override
        public Collection<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
          synchronized (mutex) {
            return delegate().replaceValues(key, values); // copy not synchronized
          }
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

      }
    
      /**
       * Confirm that replaceValues() returns a List that implements RandomAccess, even though get()
       * doesn't.
       */
      public void testReplaceValuesRandomAccess() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 1);
        multimap.put("foo", 3);
        assertTrue(multimap.replaceValues("foo", Arrays.asList(2, 4)) instanceof RandomAccess);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapReplaceValuesTester.java

    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.testing.features.MapFeature;
    import java.util.Arrays;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for {@link SetMultimap#replaceValues}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class SetMultimapReplaceValuesTester<K, V>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 1.6K bytes
    - Viewed (0)
Back to top