Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for estimateSize (0.22 sec)

  1. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CollectSpliterators.java

            return result;
          } 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;
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 15:21:23 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  3. 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}
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 08 18:58:42 GMT 2023
    - 22K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Lists.java

       * some amount of padding, it's best if you choose your desired amount explicitly.
       *
       * @param estimatedSize an estimate of the eventual {@link List#size()} of the new list
       * @return a new, empty {@code ArrayList}, sized appropriately to hold the estimated number of
       *     elements
       * @throws IllegalArgumentException if {@code estimatedSize} is negative
       */
      @GwtCompatible(serializable = true)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
Back to top