- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newSortedSetMultimap (0.13 sec)
-
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
CountingSupplier<TreeSet<Integer>> factory = new SortedSetSupplier(); Map<Color, Collection<Integer>> map = Maps.newEnumMap(Color.class); SortedSetMultimap<Color, Integer> multimap = Multimaps.newSortedSetMultimap(map, factory); // newSortedSetMultimap calls the factory once to determine the comparator. assertEquals(1, factory.count); multimap.putAll(Color.BLUE, asList(3, 1, 4)); assertEquals(2, factory.count);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 38.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
return new SortedSetMultimapBuilder<K0, V0>() { @Override public <K extends K0, V extends V0> SortedSetMultimap<K, V> build() { return Multimaps.newSortedSetMultimap( MultimapBuilderWithKeys.this.<K, V>createMap(), new TreeSetSupplier<V>(comparator)); } }; } /** Uses an {@link EnumSet} to store value collections. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 17.5K bytes - Viewed (0)