Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for ensureRoomFor (0.06 seconds)

  1. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

        public Builder add(long value) {
          ensureRoomFor(1);
          array[count] = value;
          count += 1;
          return this;
        }
    
        /**
         * Appends {@code values}, in order, to the end of the values the built {@link
         * ImmutableLongArray} will contain.
         */
        @CanIgnoreReturnValue
        public Builder addAll(long[] values) {
          ensureRoomFor(values.length);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 22K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ImmutableCollection.java

         * elements without being resized. Also, if we've already built a collection backed by the
         * current array, create a new array.
         */
        private void ensureRoomFor(int newElements) {
          @Nullable Object[] contents = this.contents;
          int newCapacity = expandedCapacity(contents.length, size + newElements);
          // expandedCapacity handles the overflow case
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

        public Builder add(double value) {
          ensureRoomFor(1);
          array[count] = value;
          count += 1;
          return this;
        }
    
        /**
         * Appends {@code values}, in order, to the end of the values the built {@link
         * ImmutableDoubleArray} will contain.
         */
        @CanIgnoreReturnValue
        public Builder addAll(double[] values) {
          ensureRoomFor(values.length);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

        public Builder add(int value) {
          ensureRoomFor(1);
          array[count] = value;
          count += 1;
          return this;
        }
    
        /**
         * Appends {@code values}, in order, to the end of the values the built {@link
         * ImmutableIntArray} will contain.
         */
        @CanIgnoreReturnValue
        public Builder addAll(int[] values) {
          ensureRoomFor(values.length);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 21.9K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ImmutableList.java

        public Builder() {
          this(DEFAULT_INITIAL_CAPACITY);
        }
    
        Builder(int capacity) {
          this.contents = new @Nullable Object[capacity];
          this.size = 0;
        }
    
        private void ensureRoomFor(int newElements) {
          @Nullable Object[] contents = this.contents;
          int newCapacity = expandedCapacity(contents.length, size + newElements);
          // expandedCapacity handles the overflow case
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.6K bytes
    - Click Count (0)
Back to Top