- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ensureRoomFor (0.78 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 22K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 21.4K bytes - Viewed (0) -
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.4K bytes - Viewed (0)