- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ensureRoomFor (0.1 sec)
-
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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 22.3K bytes - Viewed (0) -
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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.4K bytes - Viewed (0) -
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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 22.2K bytes - Viewed (0) -
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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 23K bytes - Viewed (0) -
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
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 16 19:14:45 UTC 2024 - 30.5K bytes - Viewed (0)