Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 179 for Multimap (0.19 sec)

  1. 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)
  2. 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)
  3. guava/src/com/google/common/collect/AbstractMultimap.java

      @Override
      public boolean equals(@CheckForNull Object object) {
        return Multimaps.equalsImpl(this, object);
      }
    
      /**
       * Returns the hash code for this multimap.
       *
       * <p>The hash code of a multimap is defined as the hash code of the map view, as returned by
       * {@link Multimap#asMap}.
       *
       * @see Map#hashCode
       */
      @Override
      public int hashCode() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  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. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top