Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 23 of 23 for newHashSetWithExpectedSize (0.11 seconds)

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

        private final Set<Object> delegate;
    
        JdkBackedSetBuilderImpl(SetBuilderImpl<E> toCopy) {
          super(toCopy); // initializes dedupedElements and distinct
          delegate = Sets.newHashSetWithExpectedSize(distinct);
          for (int i = 0; i < distinct; i++) {
            /*
             * requireNonNull is safe because we ensure that the first `distinct` elements have been
             * populated.
             */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Nov 07 16:09:47 GMT 2025
    - 35.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Maps.java

          try {
            return super.retainAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            // if the iterators don't support remove
            Set<@Nullable Object> keys = Sets.newHashSetWithExpectedSize(c.size());
            for (Object o : c) {
              /*
               * `o instanceof Entry` is guaranteed by `contains`, but we check it here to satisfy our
               * nullness checker.
               */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/Maps.java

          try {
            return super.retainAll(checkNotNull(c));
          } catch (UnsupportedOperationException e) {
            // if the iterators don't support remove
            Set<@Nullable Object> keys = Sets.newHashSetWithExpectedSize(c.size());
            for (Object o : c) {
              /*
               * `o instanceof Entry` is guaranteed by `contains`, but we check it here to satisfy our
               * nullness checker.
               */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
Back to Top