Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for newHashMapWithExpectedSize (0.15 sec)

  1. guava/src/com/google/common/collect/ArrayListMultimap.java

      }
    
      private ArrayListMultimap() {
        this(12, DEFAULT_VALUES_PER_KEY);
      }
    
      private ArrayListMultimap(int expectedKeys, int expectedValuesPerKey) {
        super(Platform.<K, Collection<V>>newHashMapWithExpectedSize(expectedKeys));
        checkNonnegative(expectedValuesPerKey, "expectedValuesPerKey");
        this.expectedValuesPerKey = expectedValuesPerKey;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

     *
     * @author Hayward Chan
     */
    final class Platform {
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newLinkedHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jun 10 15:17:16 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Platform.java

      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return Maps.newHashMapWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/HashMultiset.java

        return multiset;
      }
    
      private HashMultiset() {
        super(new HashMap<E, Count>());
      }
    
      private HashMultiset(int distinctElements) {
        super(Maps.<E, Count>newHashMapWithExpectedSize(distinctElements));
      }
    
      /**
       * @serialData the number of distinct elements, the first element, its count, the second element,
       *     its count, and so on
       */
      @GwtIncompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

        @SuppressWarnings("unchecked")
        Entry<E>[] entriesArray = entries.toArray((Entry<E>[]) new Entry<?>[0]);
        Map<E, Integer> delegateMap = Maps.newHashMapWithExpectedSize(entriesArray.length);
        long size = 0;
        for (int i = 0; i < entriesArray.length; i++) {
          Entry<E> entry = entriesArray[i];
          int count = entry.getCount();
          size += count;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 08 13:05:15 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Platform.java

     */
    @GwtCompatible
    final class Platform {
      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
        return CompactHashMap.createWithExpectedSize(expectedSize);
      }
    
      /**
       * Returns the platform preferred implementation of an insertion ordered map based on a hash
       * table.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/Graphs.java

          return true; // Optimization for the undirected case: at least one cycle must exist.
        }
    
        Map<Object, NodeVisitState> visitedNodes =
            Maps.newHashMapWithExpectedSize(graph.nodes().size());
        for (N node : graph.nodes()) {
          if (subgraphHasCycle(graph, visitedNodes, node)) {
            return true;
          }
        }
        return false;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/Graphs.java

          return true; // Optimization for the undirected case: at least one cycle must exist.
        }
    
        Map<Object, NodeVisitState> visitedNodes =
            Maps.newHashMapWithExpectedSize(graph.nodes().size());
        for (N node : graph.nodes()) {
          if (subgraphHasCycle(graph, visitedNodes, node)) {
            return true;
          }
        }
        return false;
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MultimapBuilder.java

        return new MultimapBuilderWithKeys<@Nullable Object>() {
          @Override
          <K extends @Nullable Object, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            return Platform.newHashMapWithExpectedSize(expectedKeys);
          }
        };
      }
    
      /**
       * Uses a hash table to map keys to value collections.
       *
       * <p>The collections returned by {@link Multimap#keySet()}, {@link Multimap#keys()}, and {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/MultimapBuilder.java

        return new MultimapBuilderWithKeys<@Nullable Object>() {
          @Override
          <K extends @Nullable Object, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            return Platform.newHashMapWithExpectedSize(expectedKeys);
          }
        };
      }
    
      /**
       * Uses a hash table to map keys to value collections.
       *
       * <p>The collections returned by {@link Multimap#keySet()}, {@link Multimap#keys()}, and {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18K bytes
    - Viewed (0)
Back to top