Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 80 for mapEntry (0.05 sec)

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

        assertEquals(getNumElements() - 1, multimap().size());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_PUT)
      public void testAsMapEntrySetReflectsPutSameKey() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v3()));
    
        Set<Entry<K, Collection<V>>> asMapEntrySet = multimap().asMap().entrySet();
        Collection<V> valueCollection = getOnlyElement(asMapEntrySet).getValue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java

      @Override
      public SampleElements<Entry<String, String>> samples() {
        return new SampleElements<>(
            mapEntry("one", "January"),
            mapEntry("two", "February"),
            mapEntry("three", "March"),
            mapEntry("four", "April"),
            mapEntry("five", "May"));
      }
    
      @Override
      public final BiMap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java

      @Override
      public SampleElements<Entry<String, String>> samples() {
        return new SampleElements<>(
            mapEntry("one", "January"),
            mapEntry("two", "February"),
            mapEntry("three", "March"),
            mapEntry("four", "April"),
            mapEntry("five", "May"));
      }
    
      @Override
      public final BiMap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java

      @Override
      public SampleElements<Entry<String, String>> samples() {
        return new SampleElements<>(
            mapEntry("one", "January"),
            mapEntry("two", "February"),
            mapEntry("three", "March"),
            mapEntry("four", "April"),
            mapEntry("five", "May"));
      }
    
      @Override
      public Map<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java

      @Override
      public SampleElements<Entry<String, String>> samples() {
        return new SampleElements<>(
            mapEntry("one", "January"),
            mapEntry("two", "February"),
            mapEntry("three", "March"),
            mapEntry("four", "April"),
            mapEntry("five", "May"));
      }
    
      @Override
      public SampleElements<String> sampleKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                        return new SampleElements<>(
                            mapEntry("a", (Collection<String>) ImmutableSortedSet.of("alex")),
                            mapEntry("b", (Collection<String>) ImmutableSortedSet.of("bob", "bagel")),
                            mapEntry("c", (Collection<String>) ImmutableSortedSet.of("carl", "carol")),
                            mapEntry("d", (Collection<String>) ImmutableSortedSet.of("david", "dead")),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  7. 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)
  8. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        } catch (UnsupportedOperationException e) {
          return;
        }
    
        map.put(null, unmappedValue);
        Entry<@Nullable K, V> entry = mapEntry(null, unmappedValue);
        assertTrue(entrySet.contains(entry));
        Entry<@Nullable K, @Nullable V> nonEntry = mapEntry(null, null);
        assertFalse(entrySet.contains(nonEntry));
      }
    
      public void testEntrySetContainsEntryNullKeyMissing() {
        Map<K, V> map;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

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

            getSubjectGenerator().create(mapEntry(k0(), v3()), mapEntry(k3(), v3()));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), v3()));
        assertTrue(multimap().containsEntry(k3(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPutAllWithNullValue() {
        Multimap<K, V> source = getSubjectGenerator().create(mapEntry(k0(), null));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top