Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 150 for MultiMap (0.13 sec)

  1. android/guava/src/com/google/common/collect/MultimapBuilder.java

        }
      }
    
      /** Returns a new, empty {@code Multimap} with the specified implementation. */
      public abstract <K extends K0, V extends V0> Multimap<K, V> build();
    
      /**
       * Returns a {@code Multimap} with the specified implementation, initialized with the entries of
       * {@code multimap}.
       */
      public <K extends K0, V extends V0> Multimap<K, V> build(
          Multimap<? extends K, ? extends V> multimap) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/HashMultimap.java

       * key-value mapping appears multiple times in the input multimap, it only appears once in the
       * constructed multimap.
       *
       * <p>You may also consider the equivalent {@code
       * MultimapBuilder.hashKeys().hashSetValues().build(multimap)}, which provides more control over
       * the underlying data structure.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 10:02:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        return copyOf(multimap, null);
      }
    
      private static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap,
          @CheckForNull Comparator<? super V> valueComparator) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. guava/src/com/google/common/collect/TreeMultimap.java

       * the same mappings as the specified multimap.
       *
       * @param multimap the multimap whose contents are copied to this multimap
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      public static <K extends Comparable, V extends Comparable> TreeMultimap<K, V> create(
          Multimap<? extends K, ? extends V> multimap) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top