Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 166 for multimaps (0.05 sec)

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

      }
    
      public void testKeysElementSet() {
        assertEquals(multimap().keySet(), multimap().keys().elementSet());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testKeysRemove() {
        int original = multimap().keys().remove(k0(), 1);
        assertEquals(max(original - 1, 0), multimap().get(k0()).size());
      }
    
      @CollectionSize.Require(ONE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

        for (Collection<V> valueCollection : multimap().asMap().values()) {
          SortedSet<V> valueSet = (SortedSet<V>) valueCollection;
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsEntryTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapContainsEntryTester<K, V>
        extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsEntryYes() {
        assertTrue(multimap().containsEntry(k0(), v0()));
      }
    
      public void testContainsEntryNo() {
        assertFalse(multimap().containsEntry(k3(), v3()));
      }
    
      public void testContainsEntryAgreesWithGet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllAbsentKey() {
        assertEmpty(multimap().removeAll(k3()));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllPresentKey() {
        assertContentsAnyOrder(multimap().removeAll(k0()), v0());
        expectMissing(e0());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        TreeMultimap<String, Integer> multimap = createMultimap();
        multimap.put("f", 1);
        multimap.put("f", 2);
        multimap.put("g", 3);
        multimap.put("h", 4);
        return multimap.asMap().subMap("e", "p");
      }
    
      @Override
      protected String getKeyNotInPopulatedMap() {
        return "a";
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      public void testAsMapValuesImplementSet() {
        for (Collection<V> valueCollection : multimap().asMap().values()) {
          assertTrue(valueCollection instanceof Set);
        }
      }
    
      public void testAsMapGetImplementsSet() {
        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof Set);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

        Multimap<Integer, UnhashableObject> multimap = ImmutableMultimap.of(0, unhashables.e0());
        assertEquals(1, multimap.get(0).size());
        assertTrue(multimap.get(0).contains(unhashables.e0()));
      }
    
      public void testUnhashableMixedValues() {
        SampleElements<UnhashableObject> unhashables = new Unhashables();
        Multimap<Integer, Object> multimap =
            ImmutableMultimap.<Integer, Object>of(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapContainsValueTester<K, V>
        extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsValueYes() {
        assertTrue(multimap().containsValue(v0()));
      }
    
      public void testContainsValueNo() {
        assertFalse(multimap().containsValue(v3()));
      }
    
      @MapFeature.Require(ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractListMultimapTester.java

        assertEqualInOrder(values, multimap().get(key));
    
        if (!values.isEmpty()) {
          assertEqualInOrder(values, multimap().asMap().get(key));
          assertFalse(multimap().isEmpty());
        } else {
          assertNull(multimap().asMap().get(key));
        }
    
        assertEquals(values.size(), multimap().get(key).size());
        assertEquals(values.size() > 0, multimap().containsKey(key));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top