Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for estimateSize (0.06 seconds)

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

          } else {
            return null;
          }
        }
    
        @Override
        public final long estimateSize() {
          if (prefix != null) {
            estimatedSize = max(estimatedSize, prefix.estimateSize());
          }
          return max(estimatedSize, 0);
        }
    
        @Override
        public final int characteristics() {
          return characteristics;
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/CollectSpliterators.java

          } else {
            return null;
          }
        }
    
        @Override
        public final long estimateSize() {
          if (prefix != null) {
            estimatedSize = max(estimatedSize, prefix.estimateSize());
          }
          return max(estimatedSize, 0);
        }
    
        @Override
        public final int characteristics() {
          return characteristics;
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

        long originalSize = spliterator.estimateSize();
        GeneralSpliterator<E> trySplit = spliterator.trySplit();
        if (spliterator.estimateSize() > originalSize) {
          fail(
              format(
                  "estimated size of spliterator after trySplit (%s) is larger than original size (%s)",
                  spliterator.estimateSize(), originalSize));
        }
        if (trySplit != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

        long originalSize = spliterator.estimateSize();
        GeneralSpliterator<E> trySplit = spliterator.trySplit();
        if (spliterator.estimateSize() > originalSize) {
          fail(
              format(
                  "estimated size of spliterator after trySplit (%s) is larger than original size (%s)",
                  spliterator.estimateSize(), originalSize));
        }
        if (trySplit != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Streams.java

          characteristics &= splitr.characteristics();
          estimatedSize = LongMath.saturatedAdd(estimatedSize, splitr.estimateSize());
        }
        return StreamSupport.stream(
                CollectSpliterators.flatMap(
                    splitrsBuilder.build().spliterator(),
                    splitr -> (Spliterator<T>) splitr,
                    characteristics,
                    estimatedSize),
                isParallel)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.4K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Streams.java

          characteristics &= splitr.characteristics();
          estimatedSize = LongMath.saturatedAdd(estimatedSize, splitr.estimateSize());
        }
        return StreamSupport.stream(
                CollectSpliterators.flatMap(
                    splitrsBuilder.build().spliterator(),
                    splitr -> (Spliterator<T>) splitr,
                    characteristics,
                    estimatedSize),
                isParallel)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Lists.java

       *     elements
       * @throws IllegalArgumentException if {@code estimatedSize} is negative
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> ArrayList<E> newArrayListWithExpectedSize(
          int estimatedSize) {
        return new ArrayList<>(computeArrayListCapacity(estimatedSize));
      }
    
      // LinkedList
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.1K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Lists.java

       *     elements
       * @throws IllegalArgumentException if {@code estimatedSize} is negative
       */
      @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call
      public static <E extends @Nullable Object> ArrayList<E> newArrayListWithExpectedSize(
          int estimatedSize) {
        return new ArrayList<>(computeArrayListCapacity(estimatedSize));
      }
    
      // LinkedList
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ImmutableBiMap.java

          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        int estimatedSize =
            (entries instanceof Collection)
                ? ((Collection<?>) entries).size()
                : ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY;
        return new Builder<K, V>(estimatedSize).putAll(entries).build();
      }
    
      ImmutableBiMap() {}
    
      /**
       * {@inheritDoc}
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 22.2K bytes
    - Click Count (0)
Back to Top