Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newListMultimap (0.07 sec)

  1. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testNewListMultimap() {
        CountingSupplier<LinkedList<Integer>> factory = new ListSupplier();
        Map<Color, Collection<Integer>> map = Maps.newTreeMap();
        ListMultimap<Color, Integer> multimap = Multimaps.newListMultimap(map, factory);
        assertEquals(0, factory.count);
        multimap.putAll(Color.BLUE, asList(3, 1, 4, 1));
        assertEquals(1, factory.count);
        multimap.putAll(Color.RED, asList(2, 7, 1, 8));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * <p><b>Warning: do not use</b> this method when the collections returned by {@code factory}
       * implement either {@link List} or {@code Set}! Use the more specific method {@link
       * #newListMultimap}, {@link #newSetMultimap} or {@link #newSortedSetMultimap} instead, to avoid
       * very surprising behavior from {@link Multimap#equals}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top