Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 150 for MultiMap (0.12 sec)

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

        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #keySet()
        assertSetIsUnmodifiable(multimap.keySet(), sampleKey);
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #get()
        if (!multimap.isEmpty()) {
          K key = multimap.keySet().iterator().next();
          assertCollectionIsUnmodifiable(multimap.get(key), sampleValue);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multimaps.java

          Multimap<K, V> synchronizedMultimap(Multimap<K, V> multimap) {
        return Synchronized.multimap(multimap, null);
      }
    
      /**
       * Returns an unmodifiable view of the specified multimap. Query operations on the returned
       * multimap "read through" to the specified multimap, and attempts to modify the returned
       * multimap, either directly or through the multimap's views, result in an {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java

        multimap.put("foo", 3);
        assertTrue(multimap.removeAll("foo") instanceof RandomAccess);
        assertTrue(multimap.removeAll("bar") instanceof RandomAccess);
      }
    
      /** Confirm that replaceValues() returns a List implementing RandomAccess. */
      public void testReplaceValuesRandomAccess() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 1);
        multimap.put("foo", 3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        TreeMultimap<String, Integer> multimap = TreeMultimap.create();
        multimap.put("google", 2);
        multimap.put("google", 6);
        multimap.put("foo", 3);
        multimap.put("foo", 1);
        multimap.put("foo", 7);
        multimap.put("tree", 4);
        multimap.put("tree", 0);
        return multimap;
      }
    
      public void testToString() {
        SetMultimap<String, Integer> multimap = create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java

        assertEmpty(multimap().asMap());
        assertEmpty(multimap().keySet());
        assertEmpty(multimap().keys());
        assertEmpty(multimap().values());
        for (K key : sampleKeys()) {
          assertGet(key);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        multimap().clear();
        assertCleared();
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

        assertEquals(multimap(), target);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll() {
        Multimap<K, V> source =
            getSubjectGenerator().create(mapEntry(k0(), v3()), mapEntry(k3(), v3()));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), v3()));
        assertTrue(multimap().containsEntry(k3(), v3()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

        assertEquals(multimap(), target);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll() {
        Multimap<K, V> source =
            getSubjectGenerator().create(mapEntry(k0(), v3()), mapEntry(k3(), v3()));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), v3()));
        assertTrue(multimap().containsEntry(k3(), v3()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

      public void testReplaceValuesWithDuplicates() {
        int size = multimap().size();
        List<V> oldValues = new ArrayList<>(multimap().get(k0()));
        List<V> values = asList(v0(), v3(), v0());
        assertEquals(oldValues, new ArrayList<V>(multimap().replaceValues(k0(), values)));
        assertEquals(size - oldValues.size() + multimap().get(k0()).size(), multimap().size());
        assertTrue(multimap().get(k0()).containsAll(values));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/GoogleHelpers.java

    import com.google.common.collect.Multimap;
    
    /**
     * Helper methods/assertions for use with {@code com.google.common.collect} types.
     *
     * @author Colin Decker
     */
    @GwtCompatible
    final class GoogleHelpers {
    
      private GoogleHelpers() {}
    
      static void assertEmpty(Multimap<?, ?> multimap) {
        if (!multimap.isEmpty()) {
          fail("Not true that " + multimap + " is empty");
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 1.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java

        assertEmpty(multimap().asMap());
        assertEmpty(multimap().keySet());
        assertEmpty(multimap().keys());
        assertEmpty(multimap().values());
        for (K key : sampleKeys()) {
          assertGet(key);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        multimap().clear();
        assertCleared();
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top