Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for copyIntoArray (0.18 sec)

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

        }
    
        @Override
        public UnmodifiableIterator<Entry<K, V>> iterator() {
          return asList().iterator();
        }
    
        @Override
        int copyIntoArray(@Nullable Object[] dst, int offset) {
          return asList().copyIntoArray(dst, offset);
        }
    
        @Override
        ImmutableList<Entry<K, V>> createAsList() {
          return new ImmutableList<Entry<K, V>>() {
            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  2. android/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
      @Nullable
      Object[] internalArray() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K 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();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  4. 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();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  5. 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;
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  6. guava/src/com/google/common/collect/ImmutableSet.java

          checkNotNull(consumer);
          int n = size();
          for (int i = 0; i < n; i++) {
            consumer.accept(get(i));
          }
        }
    
        @Override
        int copyIntoArray(@Nullable Object[] dst, int offset) {
          return asList().copyIntoArray(dst, offset);
        }
    
        @Override
        ImmutableList<E> createAsList() {
          return new ImmutableAsList<E>() {
            @Override
            public E get(int index) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  7. 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);
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  8. guava/src/com/google/common/collect/ImmutableMultiset.java

      public final boolean setCount(E element, int oldCount, int newCount) {
        throw new UnsupportedOperationException();
      }
    
      @GwtIncompatible // not present in emulated superclass
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        for (Multiset.Entry<E> entry : entrySet()) {
          Arrays.fill(dst, offset, offset + entry.getCount(), entry.getElement());
          offset += entry.getCount();
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMultiset.java

      public final boolean setCount(E element, int oldCount, int newCount) {
        throw new UnsupportedOperationException();
      }
    
      @GwtIncompatible // not present in emulated superclass
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
        for (Multiset.Entry<E> entry : entrySet()) {
          Arrays.fill(dst, offset, offset + entry.getCount(), entry.getElement());
          offset += entry.getCount();
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. 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);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
Back to top