- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getReadyToExpandTo (0.19 sec)
-
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 getReadyToExpandTo(int minCapacity) { if (contents.length < minCapacity) { this.contents = Arrays.copyOf(this.contents, expandedCapacity(contents.length, minCapacity)); forceCopy = false;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 21.5K 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 getReadyToExpandTo(int minCapacity) { if (contents.length < minCapacity) { this.contents = Arrays.copyOf(contents, expandedCapacity(contents.length, minCapacity)); forceCopy = false; } else if (forceCopy) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 08 03:01:02 UTC 2024 - 29.9K bytes - Viewed (0)