Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        List<V> values = Arrays.asList(v0(), null, v3());
        multimap().replaceValues(k0(), values);
        assertGet(k0(), values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testReplaceValuesWithNullKey() {
        List<V> values = Arrays.asList(v0(), v2(), v3());
        multimap().replaceValues(null, values);
        assertGet(null, values);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        List<V> values = Arrays.asList(v0(), null, v3());
        multimap().replaceValues(k0(), values);
        assertGet(k0(), values);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testReplaceValuesWithNullKey() {
        List<V> values = Arrays.asList(v0(), v2(), v3());
        multimap().replaceValues(null, values);
        assertGet(null, values);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

      }
    
      /** Confirm that replaceValues() returns a List implementing RandomAccess. */
      public void testReplaceValuesRandomAccess() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 1);
        multimap.put("foo", 3);
        assertTrue(multimap.replaceValues("foo", asList(2, 4)) instanceof RandomAccess);
        assertTrue(multimap.replaceValues("bar", asList(2, 4)) instanceof RandomAccess);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  4. 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)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

        }
      }
    
      protected final void expectReplacement(Entry<K, V> newEntry) {
        List<Entry<K, V>> expected = Helpers.copyToList(getSampleElements());
        replaceValue(expected, newEntry);
        expectContents(expected);
      }
    
      private void replaceValue(List<Entry<K, V>> expected, Entry<K, V> newEntry) {
        for (ListIterator<Entry<K, V>> i = expected.listIterator(); i.hasNext(); ) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. 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)
  7. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java

    import com.google.common.collect.testing.features.MapFeature;
    import java.util.Arrays;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Testers for {@link ListMultimap#replaceValues(Object, Iterable)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    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)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapReplaceValuesTester.java

    import com.google.common.collect.testing.features.MapFeature;
    import java.util.Arrays;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Testers for {@link ListMultimap#replaceValues(Object, Iterable)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

      }
    
      /** Confirm that replaceValues() returns a List implementing RandomAccess. */
      public void testReplaceValuesRandomAccess() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 1);
        multimap.put("foo", 3);
        assertTrue(multimap.replaceValues("foo", asList(2, 4)) instanceof RandomAccess);
        assertTrue(multimap.replaceValues("bar", asList(2, 4)) instanceof RandomAccess);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.6K bytes
    - Viewed (0)
Back to top