Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for fewer (1.3 sec)

  1. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/Platform.java

     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
    
      // Use fewer steps in the ListIteratorTester in ListListIteratorTester because it's slow in prod
      // mode.
      static int listListIteratorTesterNumIterations() {
        // TODO(hhchan): It's 4 in java.  Figure out why even 3 is too slow in prod mode.
        return 2;
      }
    
      // Use fewer steps in the IteratorTester in CollectionIteratorTester because it's slow in prod
      // mode.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

       *     the size of the iterable
       * @return the element at the specified position in {@code iterable} or {@code defaultValue} if
       *     {@code iterable} contains fewer than {@code position + 1} elements.
       * @throws IndexOutOfBoundsException if {@code position} is negative
       * @since 4.0
       */
      @ParametricNullness
      public static <T extends @Nullable Object> T get(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Iterables.java

       *     the size of the iterable
       * @return the element at the specified position in {@code iterable} or {@code defaultValue} if
       *     {@code iterable} contains fewer than {@code position + 1} elements.
       * @throws IndexOutOfBoundsException if {@code position} is negative
       * @since 4.0
       */
      @ParametricNullness
      public static <T extends @Nullable Object> T get(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TopKSelector.java

        while (elements.hasNext()) {
          offer(elements.next());
        }
      }
    
      /**
       * Returns the top {@code k} elements offered to this {@code TopKSelector}, or all elements if
       * fewer than {@code k} have been offered, in the order specified by the factory used to create
       * this {@code TopKSelector}.
       *
       * <p>The returned list is an unmodifiable copy and will not be affected by further changes to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Striped.java

       * bulkGet(keys)} with a relative large number of keys can cause an excessive number of shared
       * stripes (much like the birthday paradox, where much fewer than anticipated birthdays are needed
       * for a pair of them to match). Please consider carefully the implications of the number of
       * stripes, the intended concurrency level, and the typical number of keys used in a {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Chars.java

       *
       * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much more
       * flexibility at little cost in readability.
       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements
       */
      @GwtIncompatible // doesn't work
      public static char fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Shorts.java

       *
       * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much more
       * flexibility at little cost in readability.
       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements
       */
      @GwtIncompatible // doesn't work
      public static short fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Shorts.java

       *
       * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much more
       * flexibility at little cost in readability.
       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements
       */
      @GwtIncompatible // doesn't work
      public static short fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FluentIterable.java

            return Optional.of(current);
          }
        }
      }
    
      /**
       * Returns a view of this fluent iterable that skips its first {@code numberToSkip} elements. If
       * this fluent iterable contains fewer than {@code numberToSkip} elements, the returned fluent
       * iterable skips all of its elements.
       *
       * <p>Modifications to this fluent iterable before a call to {@code iterator()} are reflected in
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Ints.java

       *
       * <p>Arguably, it's preferable to use {@link java.nio.ByteBuffer}; that library exposes much more
       * flexibility at little cost in readability.
       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 4 elements
       */
      public static int fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(bytes[0], bytes[1], bytes[2], bytes[3]);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top