Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for mapEntry (0.05 sec)

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

        SetMultimap<K, V> multimap1 =
            getSubjectGenerator()
                .create(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v4()));
        SetMultimap<K, V> multimap2 =
            getSubjectGenerator()
                .create(mapEntry(k0(), v1()), mapEntry(k0(), v0()), mapEntry(k0(), v4()));
        new EqualsTester().addEqualityGroup(multimap1, multimap2).testEquals();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultimapKeysTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      @CollectionSize.Require(SEVERAL)
      public void testKeys() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k1(), v0()));
        Multiset<K> keys = multimap().keys();
        assertEquals(2, keys.count(k0()));
        assertEquals(1, keys.count(k1()));
        assertEquals(3, keys.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testEntrySetEquals() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> expected = newHashSet();
        expected.add(mapEntry(k0(), (Collection<V>) Lists.newArrayList(v0(), v3())));
        expected.add(mapEntry(k1(), (Collection<V>) Lists.newArrayList(v0())));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapSizeTester.java

        assertEquals(getNumElements(), multimap().size());
        assertFalse(multimap().isEmpty());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testSizeMultipleValues() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v2()));
    
        assertEquals(3, multimap().size());
        assertEquals(3, multimap().entries().size());
        assertEquals(3, multimap().keys().size());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                        return new SampleElements<>(
                            mapEntry(Range.singleton(0), "banana"),
                            mapEntry(Range.closedOpen(3, 5), "frisbee"),
                            mapEntry(Range.atMost(-1), "fruitcake"),
                            mapEntry(Range.open(10, 15), "elephant"),
                            mapEntry(Range.closed(20, 22), "umbrella"));
                      }
    
                      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        try {
          assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        try {
          assertFalse(getMap().entrySet().contains(mapEntry(IncomparableType.INSTANCE, v0())));
        } catch (ClassCastException acceptable) {
          // allowed by the spec
        }
      }
    
      public void testContainsEntryWithIncomparableValue() {
        try {
          assertFalse(getMap().entrySet().contains(mapEntry(k0(), IncomparableType.INSTANCE)));
        } catch (ClassCastException acceptable) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java

        expectMissing(e0());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllMultipleValues() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v2()));
    
        assertContentsAnyOrder(multimap().removeAll(k0()), v0(), v1(), v2());
        assertEmpty(multimap());
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testEntrySetEquals() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k1(), v0()), mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> expected = newHashSet();
        expected.add(mapEntry(k0(), (Collection<V>) newHashSet(v0(), v3())));
        expected.add(mapEntry(k1(), (Collection<V>) newHashSet(v0())));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        expectMissing(mapEntry(k0(), v0()));
        assertEquals(getNumElements() - 1, multimap().size());
        assertFalse(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllPropagatesToMultimap() {
        assertTrue(multimap().entries().removeAll(singleton(mapEntry(k0(), v0()))));
    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