- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for newListMultimap (0.09 seconds)
-
android/guava/src/com/google/common/collect/MultimapBuilder.java
return new ListMultimapBuilder<K0, @Nullable Object>() { @Override public <K extends K0, V extends @Nullable Object> ListMultimap<K, V> build() { return Multimaps.newListMultimap( MultimapBuilderWithKeys.this.createMap(), new ArrayListSupplier<V>(expectedValuesPerKey)); } }; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 18K bytes - Click Count (0) -
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));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 38.9K bytes - Click Count (0) -
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}. *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 86.5K bytes - Click Count (0)