- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for createCollection (0.23 sec)
-
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
* <p>To implement a multimap, a subclass must define the method {@link #createCollection()}, which * creates an empty collection of values for a key. * * <p>The multimap constructor takes a map that has a single entry for each distinct key. When you * insert a key-value pair with a key that isn't already in the multimap, {@code * AbstractMapBasedMultimap} calls {@link #createCollection()} to create the collection of values
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Aug 12 15:51:57 UTC 2025 - 48.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
return new SampleElements<>( mapEntry(sampleKeys.e0(), createCollection(sampleValues.e0())), mapEntry(sampleKeys.e1(), createCollection(sampleValues.e1())), mapEntry(sampleKeys.e2(), createCollection(sampleValues.e2())), mapEntry(sampleKeys.e3(), createCollection(sampleValues.e3())), mapEntry(sampleKeys.e4(), createCollection(sampleValues.e4()))); } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 26.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractListMultimap.java
/** * Basic implementation of the {@link ListMultimap} interface. It's a wrapper around {@link * AbstractMapBasedMultimap} that converts the returned collections into {@code Lists}. The {@link * #createCollection} method must return a {@code List}. * * @author Jared Levy * @since 2.0 */ @GwtCompatible abstract class AbstractListMultimap<K extends @Nullable Object, V extends @Nullable Object>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java
*/ protected AbstractSortedSetMultimap(Map<K, Collection<V>> map) { super(map); } @Override abstract SortedSet<V> createCollection(); @Override SortedSet<V> createUnmodifiableEmptyCollection() { return unmodifiableCollectionSubclass(createCollection()); } @Override <E extends @Nullable Object> SortedSet<E> unmodifiableCollectionSubclass( Collection<E> collection) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 20 13:05:10 UTC 2025 - 5.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSetMultimap.java
/** * Basic implementation of the {@link SetMultimap} interface. It's a wrapper around {@link * AbstractMapBasedMultimap} that converts the returned collections into {@code Sets}. The {@link * #createCollection} method must return a {@code Set}. * * @author Jared Levy */ @GwtCompatible abstract class AbstractSetMultimap<K extends @Nullable Object, V extends @Nullable Object>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 20 13:05:10 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java
} @Override public SampleElements<String> sampleValues() { return new SampleElements<>("January", "February", "March", "April", "May"); } @Override public Collection<String> createCollection(Iterable<? extends String> values) { return copyToSet(values); } @Override public final SetMultimap<String, String> create(Object... entries) { @SuppressWarnings("unchecked")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/TestMultimapGenerator.java
K[] createKeyArray(int length); V[] createValueArray(int length); SampleElements<K> sampleKeys(); SampleElements<V> sampleValues(); Collection<V> createCollection(Iterable<? extends V> values);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestMultimapGenerator.java
K[] createKeyArray(int length); V[] createValueArray(int length); SampleElements<K> sampleKeys(); SampleElements<V> sampleValues(); Collection<V> createCollection(Iterable<? extends V> values);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 1.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java
@Override public SampleElements<String> sampleValues() { return new SampleElements<>("january", "february", "march", "april", "may"); } @Override public Collection<String> createCollection(Iterable<? extends String> values) { return Lists.newArrayList(values); } @Override public SampleElements<Entry<String, String>> samples() { return new SampleElements<>(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 28.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedHashMultimap.java
* * <p>Creates an empty {@code LinkedHashSet} for a collection of values for one key. * * @return a new {@code LinkedHashSet} containing a collection of values for one key */ @Override Set<V> createCollection() { return Platform.newLinkedHashSetWithExpectedSize(valueSetCapacity); } /** * {@inheritDoc} * * <p>Creates a decorated insertion-ordered set that also keeps track of the order in which
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.1K bytes - Viewed (0)