Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 127 for nCopies (0.04 sec)

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

       * elements.
       *
       * <p>To cycle over the iterable {@code n} times, use the following: {@code
       * Iterables.concat(Collections.nCopies(n, iterable))}
       *
       * <p><b>Java 8+ users:</b> The {@code Stream} equivalent of this method is {@code
       * Stream.generate(() -> iterable).flatMap(Streams::stream)}.
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        }
    
        Iterable<String> prepend(Iterable<String> tail)
            throws IllegalArgumentException, NullPointerException {
          return Iterables.concat(Collections.nCopies(times, prefix), tail);
        }
    
        static Invokable<?, Prepender> constructor(Class<?>... parameterTypes) throws Exception {
          Constructor<Prepender> constructor = Prepender.class.getDeclaredConstructor(parameterTypes);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 30.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

                int i = threadLocalCount.get();
                threadLocalCount.set(i + 1);
                return i;
              }
            };
    
        List<Future<Integer>> futures = executor.invokeAll(Collections.nCopies(10, incrementTask));
    
        for (int i = 0; i < 10; i++) {
          Future<Integer> future = futures.get(i);
          assertTrue("Task should have been run before being returned", future.isDone());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IterablesTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.emptySet;
    import static java.util.Collections.nCopies;
    import static java.util.Collections.singleton;
    import static java.util.Collections.singletonList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 45.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Multisets.java

        Spliterator<Entry<E>> entrySpliterator = multiset.entrySet().spliterator();
        return CollectSpliterators.flatMap(
            entrySpliterator,
            (Entry<E> entry) -> Collections.nCopies(entry.getCount(), entry.getElement()).spliterator(),
            Spliterator.SIZED
                | (entrySpliterator.characteristics()
                    & (Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.IMMUTABLE)),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multiset.java

       * 1}, this method has the identical effect to {@link #add(Object)}. This method is functionally
       * equivalent (except in the case of overflow) to the call {@code
       * addAll(Collections.nCopies(element, occurrences))}, which would presumably perform much more
       * poorly.
       *
       * @param element the element to add occurrences of; may be null only if explicitly allowed by the
       *     implementation
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Multiset.java

       * 1}, this method has the identical effect to {@link #add(Object)}. This method is functionally
       * equivalent (except in the case of overflow) to the call {@code
       * addAll(Collections.nCopies(element, occurrences))}, which would presumably perform much more
       * poorly.
       *
       * @param element the element to add occurrences of; may be null only if explicitly allowed by the
       *     implementation
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  8. LICENSES/vendor/github.com/beorn7/perks/LICENSE

    without limitation the rights to use, copy, modify, merge, publish,
    distribute, sublicense, and/or sell copies of the Software, and to
    permit persons to whom the Software is furnished to do so, subject to
    the following conditions:
    
    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Fri May 08 04:49:00 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  9. LICENSES/vendor/github.com/MakeNowJust/heredoc/LICENSE

    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Fri Jun 10 18:51:33 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  10. LICENSES/vendor/github.com/blang/semver/v4/LICENSE

    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 1.2K bytes
    - Viewed (0)
Back to top