Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for Potter (0.32 sec)

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

        final SetBuilderImpl<E> combine(SetBuilderImpl<E> other) {
          SetBuilderImpl<E> result = this;
          for (int i = 0; i < other.distinct; i++) {
            /*
             * requireNonNull is safe because we ensure that the first `distinct` elements have been
             * populated.
             */
            result = result.add(requireNonNull(other.dedupedElements[i]));
          }
          return result;
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMap.java

        }
    
        @CanIgnoreReturnValue
        Builder<K, V> combine(Builder<K, V> other) {
          checkNotNull(other);
          ensureCapacity(this.size + other.size);
          System.arraycopy(
              other.alternatingKeysAndValues,
              0,
              this.alternatingKeysAndValues,
              this.size * 2,
              other.size * 2);
          this.size += other.size;
          return this;
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

                   * with two implementations, one that contains causeless Cancellation instances and
                   * the other of which creates new Cancellation instances each time it's called? Yet
                   * another alternative is to fill in a non-null value for each of the fields no matter
                   * what and to just not use it if !GENERATE_CANCELLATION_CAUSES.
                   */
                  : requireNonNull(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedSet.java

        }
    
        @CanIgnoreReturnValue
        @Override
        Builder<E> combine(ImmutableSet.Builder<E> builder) {
          copyIfNecessary();
          Builder<E> other = (Builder<E>) builder;
          for (int i = 0; i < other.n; i++) {
            add(other.elements[i]);
          }
          return this;
        }
    
        /**
         * Returns a newly-created {@code ImmutableSortedSet} based on the contents of the {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       *
       * <p>If {@code expectedSize} is exactly the number of entries added to the builder before {@link
       * Builder#build} is called, the builder is likely to perform better than an unsized {@link
       * #builder()} would have.
       *
       * <p>It is not specified if any performance benefits apply if {@code expectedSize} is close to,
       * but not exactly, the number of entries added to the builder.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

       * {@link TreeSet} or the {@link Map#keySet} of an {@code IdentityHashMap}.
       *
       * <p><b>Note:</b> The returned view performs slightly better when {@code set1} is the smaller of
       * the two sets. If you have reason to believe one of your sets will generally be smaller than the
       * other, pass it first. Unfortunately, since this method sets the generic type of the returned
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Ordering.java

       *
       * <p><b>Performance note:</b> According to our
       * benchmarking
       * on Open JDK 7, {@link #immutableSortedCopy} generally performs better (in both time and space)
       * than this method, and this method in turn generally performs better than copying the list and
       * calling {@link Collections#sort(List)}.
       */
      // TODO(kevinb): rerun benchmarks including new options
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Futures.java

         * LF<? extends @Nullable V>. That might be better: There's currently no difference between the
         * outputs users get when calling this with <Foo> and calling it with <@Nullable Foo>. The only
         * difference is that calling it with <Foo> won't work when an input Future has a @Nullable
         * type. So why even make that error possible by giving callers the choice?
         *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      }
    
      /**
       * Not supported. Use {@link #naturalOrder}, which offers better type-safety, instead. This method
       * exists only to hide {@link ImmutableMultiset#builder} from consumers of {@code
       * ImmutableSortedMultiset}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link ImmutableSortedMultiset#naturalOrder}, which offers better type-safety.
       */
      @DoNotCall("Use naturalOrder.")
      @Deprecated
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

      public final <T extends @Nullable Object> T[] toArray(T[] other) {
        checkNotNull(other);
        int size = size();
    
        if (other.length < size) {
          Object[] internal = internalArray();
          if (internal != null) {
            return Platform.copy(internal, internalArrayStart(), internalArrayEnd(), other);
          }
          other = ObjectArrays.newArray(other, size);
        } else if (other.length > size) {
          other[size] = null;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
Back to top