Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newSetMultimap (0.08 sec)

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

          return new SetMultimapBuilder<K0, @Nullable Object>() {
            @Override
            public <K extends K0, V extends @Nullable Object> SetMultimap<K, V> build() {
              return Multimaps.newSetMultimap(
                  MultimapBuilderWithKeys.this.<K, V>createMap(),
                  new HashSetSupplier<V>(expectedValuesPerKey));
            }
          };
        }
    
    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. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testNewSetMultimap() {
        CountingSupplier<Set<Integer>> factory = new SetSupplier();
        Map<Color, Collection<Integer>> map = Maps.newHashMap();
        SetMultimap<Color, Integer> multimap = Multimaps.newSetMultimap(map, factory);
        assertEquals(0, factory.count);
        multimap.putAll(Color.BLUE, asList(3, 1, 4));
        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)
Back to top