Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for newElement (0.03 sec)

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

        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
          if (contents.length < newCapacity || copyOnWrite) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 30.6K bytes
    - Viewed (0)
Back to top