Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for createCollection (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. guava/src/com/google/common/collect/ArrayListMultimap.java

                : DEFAULT_VALUES_PER_KEY);
        putAll(multimap);
      }
    
      /**
       * Creates a new, empty {@code ArrayList} to hold the collection of values for an arbitrary key.
       */
      @Override
      List<V> createCollection() {
        return new ArrayList<>(expectedValuesPerKey);
      }
    
      /**
       * Reduces the memory used by this {@code ArrayListMultimap}, if feasible.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multimaps.java

          return createMaybeNavigableKeySet();
        }
    
        @Override
        Map<K, Collection<V>> createAsMap() {
          return createMaybeNavigableAsMap();
        }
    
        @Override
        protected Collection<V> createCollection() {
          return factory.get();
        }
    
        @Override
        <E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass(
            Collection<E> collection) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Multimaps.java

          return createMaybeNavigableKeySet();
        }
    
        @Override
        Map<K, Collection<V>> createAsMap() {
          return createMaybeNavigableAsMap();
        }
    
        @Override
        protected Collection<V> createCollection() {
          return factory.get();
        }
    
        @Override
        <E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass(
            Collection<E> collection) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.9K bytes
    - Viewed (0)
Back to top