Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for copyIntoArray (0.07 sec)

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

        return elements;
      }
    
      @Override
      int internalArrayStart() {
        return 0;
      }
    
      @Override
      int internalArrayEnd() {
        return elements.length;
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        arraycopy(elements, 0, dst, offset, elements.length);
        return offset + elements.length;
      }
    
      @Override
      ImmutableList<E> createAsList() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableCollection.java

          }
          other = ObjectArrays.newArray(other, size);
        } else if (other.length > size) {
          other[size] = null;
        }
        copyIntoArray(other, 0);
        return other;
      }
    
      /** If this collection is backed by an array of its elements in insertion order, returns it. */
      @CheckForNull
      Object[] internalArray() {
        return null;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          return multimap.valueIterator();
        }
    
        @GwtIncompatible // not present in emulated superclass
        @Override
        int copyIntoArray(@Nullable Object[] dst, int offset) {
          for (ImmutableCollection<V> valueCollection : multimap.map.values()) {
            offset = valueCollection.copyIntoArray(dst, offset);
          }
          return offset;
        }
    
        @Override
        public int size() {
          return multimap.size();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

        return this;
      }
    
      @Override
      public Spliterator<E> spliterator() {
        return CollectSpliterators.indexed(size(), SPLITERATOR_CHARACTERISTICS, this::get);
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        // this loop is faster for RandomAccess instances, which ImmutableLists are
        int size = size();
        for (int i = 0; i < size; i++) {
          dst[offset + i] = get(i);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableList.java

       */
      @InlineMe(replacement = "this")
      @Deprecated
      @Override
      public final ImmutableList<E> asList() {
        return this;
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        // this loop is faster for RandomAccess instances, which ImmutableLists are
        int size = size();
        for (int i = 0; i < size; i++) {
          dst[offset + i] = get(i);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
Back to top