Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for replace_value (0.24 sec)

  1. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18K bytes
    - Viewed (0)
  2. 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)
  3. android/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
    - 14.8K bytes
    - Viewed (0)
  4. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimap.java

     *   <li>and, notably, even the collection returned by {@link #get get(key)} is an active view of
     *       the values corresponding to {@code key}
     * </ul>
     *
     * <p>The collections returned by the {@link #replaceValues replaceValues} and {@link #removeAll
     * removeAll} methods, which contain values that have just been removed from the multimap, are
     * naturally <i>not</i> views.
     *
     * <h3>Subinterfaces</h3>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        SetMultimap<String, Integer> filtered =
            Multimaps.filterKeys(multimap, Predicates.in(ImmutableSet.of("foo", "bar")));
    
        assertEquals(ImmutableSet.of(), filtered.replaceValues("baz", ImmutableSet.<Integer>of()));
    
        try {
          filtered.replaceValues("baz", ImmutableSet.of(5));
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

       * the {@link #entries()} and {@link #values()} iteration orderings.
       */
      @CanIgnoreReturnValue
      @Override
      public Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        return super.replaceValues(key, values);
      }
    
      /**
       * Returns a set of all key-value pairs. Changes to the returned set will update the underlying
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/LinkedListMultimap.java

     * {@link #replaceValues} attempts to preserve iteration order as much as possible.
     *
     * <p>The collections returned by {@link #keySet()} and {@link #asMap} iterate through the keys in
     * the order they were first added to the multimap. Similarly, {@link #get}, {@link #removeAll}, and
     * {@link #replaceValues} return collections that iterate through the values in the order they were
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MultimapsTest.java

        SetMultimap<String, Integer> filtered =
            Multimaps.filterKeys(multimap, Predicates.in(ImmutableSet.of("foo", "bar")));
    
        assertEquals(ImmutableSet.of(), filtered.replaceValues("baz", ImmutableSet.<Integer>of()));
    
        try {
          filtered.replaceValues("baz", ImmutableSet.of(5));
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        assertThat(entry.getValue()).contains(2);
      }
    
      public void testOrderingUpdates() {
        Multimap<String, Integer> multimap = initializeMultimap5();
    
        assertThat(multimap.replaceValues("foo", asList(6, 7))).containsExactly(5, 3).inOrder();
        assertThat(multimap.keySet()).containsExactly("foo", "bar", "cow").inOrder();
        assertThat(multimap.removeAll("foo")).containsExactly(6, 7).inOrder();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 16.3K bytes
    - Viewed (0)
Back to top