Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. android/guava/src/com/google/common/collect/ImmutableCollection.java

         * 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
          if (newCapacity > contents.length || forceCopy) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      public boolean add(E element) {
        offer(element);
        return true;
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean addAll(Collection<? extends E> newElements) {
        boolean modified = false;
        for (E element : newElements) {
          offer(element);
          modified = true;
        }
        return modified;
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 33.9K bytes
    - Viewed (0)
  3. 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)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      public int lastIndexOf(@Nullable Object object) {
        return (object == null) ? -1 : Lists.lastIndexOfImpl(this, object);
      }
    
      @Override
      public final boolean addAll(int index, Collection<? extends E> newElements) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public final E set(int index, E element) {
        throw new UnsupportedOperationException();
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableList.java

       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final boolean addAll(int index, Collection<? extends E> newElements) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the list unmodified.
       *
       * @throws UnsupportedOperationException always
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 27.5K bytes
    - Viewed (0)
Back to top