Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for createCollection (0.17 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. 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
    @ElementTypesAreNonnullByDefault
    abstract class AbstractSetMultimap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. android/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
    @ElementTypesAreNonnullByDefault
    abstract class AbstractSetMultimap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TreeMultimap.java

       */
      @Override
      SortedSet<V> createCollection() {
        return new TreeSet<>(valueComparator);
      }
    
      @Override
      Collection<V> createCollection(@ParametricNullness K key) {
        if (key == null) {
          int unused = keyComparator().compare(key, key);
        }
        return super.createCollection(key);
      }
    
      /**
       * Returns the comparator that orders the multimap keys.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. 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 copyToList(values);
      }
    
      @Override
      public final ListMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. 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 copyToSet(values);
      }
    
      @Override
      public final SetMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 10:02:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top