Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 166 for multimaps (0.05 sec)

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

    public class MultimapRemoveEntryTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAbsent() {
        assertFalse(multimap().remove(k0(), v1()));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

    public class MultimapRemoveEntryTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAbsent() {
        assertFalse(multimap().remove(k0(), v1()));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        multimap().entries().retainAll(singleton(mapEntry(k0(), v0())));
        assertEquals(getSubjectGenerator().create(mapEntry(k0(), v0())), multimap());
        assertEquals(1, multimap().size());
        assertTrue(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testIteratorRemovePropagatesToMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testContainsKeyYes() {
        assertTrue(multimap().containsKey(k0()));
      }
    
      public void testContainsKeyNo() {
        assertFalse(multimap().containsKey(k3()));
      }
    
      public void testContainsKeysFromKeySet() {
        for (K k : multimap().keySet()) {
          assertTrue(multimap().containsKey(k));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

        assertContentsAnyOrder(multimap().get(k0()), v1(), v2());
        assertTrue(multimap().containsKey(k0()));
        assertFalse(multimap().containsEntry(k0(), v0()));
        assertTrue(multimap().containsEntry(k0(), v2()));
        assertEquals(oldSize + 1, multimap().size());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testReflectsMultimapRemove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        multimap().entries().retainAll(singleton(mapEntry(k0(), v0())));
        assertEquals(getSubjectGenerator().create(mapEntry(k0(), v0())), multimap());
        assertEquals(1, multimap().size());
        assertTrue(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testIteratorRemovePropagatesToMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java

            .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray()))
            .testEquals();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testEqualsMultimapWithNullKey() {
        Multimap<K, V> original = multimap();
        initMultimapWithNullKey();
        Multimap<K, V> withNull = multimap();
        new EqualsTester()
            .addEqualityGroup(original)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

      @Weak private final FilteredMultimap<K, V> multimap;
    
      FilteredMultimapValues(FilteredMultimap<K, V> multimap) {
        this.multimap = checkNotNull(multimap);
      }
    
      @Override
      public Iterator<V> iterator() {
        return Maps.valueIterator(multimap.entries().iterator());
      }
    
      @Override
      public boolean contains(@CheckForNull Object o) {
        return multimap.containsValue(o);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingMultimapTest.java

        new ForwardingWrapperTester()
            .testForwarding(
                Multimap.class,
                new Function<Multimap, Multimap<?, ?>>() {
                  @Override
                  public Multimap<?, ?> apply(Multimap delegate) {
                    return wrap((Multimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
        Multimap<Integer, String> map1 = ImmutableMultimap.of(1, "one");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

        Set<Entry<K, Collection<V>>> asMapEntrySet = multimap().asMap().entrySet();
        Entry<K, Collection<V>> asMapEntry0 = getOnlyElement(asMapEntrySet);
        assertTrue(multimap().put(k1(), v4()));
        assertTrue(asMapEntrySet.remove(asMapEntry0));
        assertEquals(1, multimap().size());
        assertContentsInOrder(multimap().keySet(), k1());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top