Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for createCollection (0.18 sec)

  1. 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 Helpers.copyToSet(values);
      }
    
      @Override
      public final SetMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. android/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 Helpers.copyToSet(values);
      }
    
      @Override
      public final SetMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java

      }
    
      @Override
      public SampleElements<String> sampleValues() {
        return new SampleElements<>("January", "February", "March", "April", "May");
      }
    
      @Override
      public Collection<String> createCollection(Iterable<? extends String> values) {
        return Helpers.copyToList(values);
      }
    
      @Override
      public final ListMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java

      }
    
      @Override
      public SampleElements<String> sampleValues() {
        return new SampleElements<>("January", "February", "March", "April", "May");
      }
    
      @Override
      public Collection<String> createCollection(Iterable<? extends String> values) {
        return Helpers.copyToList(values);
      }
    
      @Override
      public final ListMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. 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<>(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/HashMultimap.java

       *
       * <p>Creates an empty {@code HashSet} for a collection of values for one key.
       *
       * @return a new {@code HashSet} containing a collection of values for one key
       */
      @Override
      Set<V> createCollection() {
        return Platform.<V>newHashSetWithExpectedSize(expectedValuesPerKey);
      }
    
      /**
       * @serialData expectedValuesPerKey, number of distinct keys, and then for each distinct key: the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/HashMultimap.java

       *
       * <p>Creates an empty {@code HashSet} for a collection of values for one key.
       *
       * @return a new {@code HashSet} containing a collection of values for one key
       */
      @Override
      Set<V> createCollection() {
        return Platform.<V>newHashSetWithExpectedSize(expectedValuesPerKey);
      }
    
      /**
       * @serialData expectedValuesPerKey, number of distinct keys, and then for each distinct key: the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  8. android/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.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. 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
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 48K bytes
    - Viewed (0)
  10. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top