Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 23 of 23 for newArrayListWithCapacity (0.09 seconds)

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

       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> ArrayList<E> newArrayListWithCapacity(
          int initialArraySize) {
        checkNonnegative(initialArraySize, "initialArraySize"); // for GWT.
        return new ArrayList<>(initialArraySize);
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 42.6K bytes
    - Click Count (0)
  2. guava/src/com/google/common/util/concurrent/MoreExecutors.java

        checkNotNull(executorService);
        checkNotNull(unit);
        int ntasks = tasks.size();
        checkArgument(ntasks > 0);
        List<Future<T>> futures = Lists.newArrayListWithCapacity(ntasks);
        BlockingQueue<Future<T>> futureQueue = Queues.newLinkedBlockingQueue();
        long timeoutNanos = unit.toNanos(timeout);
    
        // For efficiency, especially in executors with limited
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 45.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       */
      public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(
          E e1, E e2, E e3, E e4, E e5, E e6, E... remaining) {
        int size = remaining.length + 6;
        List<E> all = Lists.newArrayListWithCapacity(size);
        Collections.addAll(all, e1, e2, e3, e4, e5, e6);
        Collections.addAll(all, remaining);
        return copyOf(Ordering.natural(), all);
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 35.2K bytes
    - Click Count (0)
Back to Top