Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for toArrayImpl (0.12 sec)

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

       * @throws ArrayStoreException if the runtime type of the specified array is not a supertype of
       *     the runtime type of every element in the specified collection
       */
      static <T extends @Nullable Object> T[] toArrayImpl(Collection<?> c, T[] array) {
        int size = c.size();
        if (array.length < size) {
          array = newArray(array, size);
        }
        fillArray(c, array);
        if (array.length > size) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 12 15:59:22 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        doTestToArrayImpl1(Lists.<@Nullable Integer>newArrayList(1, null, 3));
      }
    
      private void doTestToArrayImpl1(List<Integer> list) {
        Object[] reference = list.toArray();
        Object[] target = ObjectArrays.toArrayImpl(list);
        assertEquals(reference.getClass(), target.getClass());
        assertTrue(Arrays.equals(reference, target));
      }
    
      public void testToArrayImpl2() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ObjectArrays.java

       * @throws ArrayStoreException if the runtime type of the specified array is not a supertype of
       *     the runtime type of every element in the specified collection
       */
      static <T extends @Nullable Object> T[] toArrayImpl(Collection<?> c, T[] array) {
        int size = c.size();
        if (array.length < size) {
          array = newArray(array, size);
        }
        fillArray(c, array);
        if (array.length > size) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 12 15:59:22 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CompactLinkedHashSet.java

      }
    
      @Override
      public @Nullable Object[] toArray() {
        return ObjectArrays.toArrayImpl(this);
      }
    
      @Override
      @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
      public <T extends @Nullable Object> T[] toArray(T[] a) {
        return ObjectArrays.toArrayImpl(this, a);
      }
    
      @Override
      public Spliterator<E> spliterator() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 21:38:59 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      }
    
      @Override
      public @Nullable Object[] toArray() {
        return ObjectArrays.toArrayImpl(this);
      }
    
      @Override
      @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations
      public <T extends @Nullable Object> T[] toArray(T[] a) {
        return ObjectArrays.toArrayImpl(this, a);
      }
    
      @Override
      public void clear() {
        if (needsAllocArrays()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 21:38:59 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ForwardingCollection.java

       * to forward to this implementation.
       *
       * @since 7.0
       */
      protected <T extends @Nullable Object> T[] standardToArray(T[] array) {
        return ObjectArrays.toArrayImpl(this, array);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 8.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingCollection.java

       * to forward to this implementation.
       *
       * @since 7.0
       */
      protected <T extends @Nullable Object> T[] standardToArray(T[] array) {
        return ObjectArrays.toArrayImpl(this, array);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 8.2K bytes
    - Viewed (0)
Back to top