Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 601 for arrayT (0.22 sec)

  1. android/guava-tests/test/com/google/common/collect/ObjectArraysTest.java

      }
    
      private void doTestToArrayImpl2(List<Integer> list, Integer[] array1, boolean expectModify) {
        Integer[] starting = Arrays.copyOf(array1, array1.length);
        Integer[] array2 = Arrays.copyOf(array1, array1.length);
        // TODO b/283448200 - Remove temporary variable when Kotlin smartcast issue is resolved.
        Integer[] array1Tmp = array1;
        Object[] reference = list.toArray(array1Tmp);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. src/go/types/array.go

    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    // A negative result indicates an unknown length.
    func (a *Array) Len() int64 { return a.len }
    
    // Elem returns element type of array a.
    func (a *Array) Elem() Type { return a.elem }
    
    func (a *Array) Underlying() Type { return a }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsInOrder(getOrderedElements(), array);
      }
    
      public void testToArray_rightSizedArrayOfObject() {
        Object[] array = new Object[getNumElements()];
        assertSame(
            "toArray(sameSizeObject[]) should return the given array",
            array,
            collection.toArray(array));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

            "toArray(sameSizeE[]) should return the given array", array, collection.toArray(array));
        expectArrayContentsInOrder(getOrderedElements(), array);
      }
    
      public void testToArray_rightSizedArrayOfObject() {
        Object[] array = new Object[getNumElements()];
        assertSame(
            "toArray(sameSizeObject[]) should return the given array",
            array,
            collection.toArray(array));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Platform.java

        return CompactHashSet.create();
      }
    
      /**
       * Returns a new array of the given length with the same type as a reference array.
       *
       * @param reference any array of the desired type
       * @param length the length of the new array
       */
      /*
       * The new array contains nulls, even if the old array did not. If we wanted to be accurate, we
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Platform.java

        return CompactHashSet.create();
      }
    
      /**
       * Returns a new array of the given length with the same type as a reference array.
       *
       * @param reference any array of the desired type
       * @param length the length of the new array
       */
      /*
       * The new array contains nulls, even if the old array did not. If we wanted to be accurate, we
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java

      public void testRetainAll_duplicatesKept() {
        E[] array = createSamplesArray();
        array[1] = e0();
        collection = getSubjectGenerator().create(array);
        assertFalse(
            "containsDuplicates.retainAll(superset) should return false",
            collection.retainAll(MinimalCollection.of(createSamplesArray())));
        expectContents(array);
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java

      public void testRetainAll_duplicatesKept() {
        E[] array = createSamplesArray();
        array[1] = e0();
        collection = getSubjectGenerator().create(array);
        assertFalse(
            "containsDuplicates.retainAll(superset) should return false",
            collection.retainAll(MinimalCollection.of(createSamplesArray())));
        expectContents(array);
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompoundOrdering.java

          CompoundOrdering<?> that = (CompoundOrdering<?>) object;
          return Arrays.equals(this.comparators, that.comparators);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return Arrays.hashCode(comparators);
      }
    
      @Override
      public String toString() {
        return "Ordering.compound(" + Arrays.toString(comparators) + ")";
      }
    
      private static final long serialVersionUID = 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompoundOrdering.java

          CompoundOrdering<?> that = (CompoundOrdering<?>) object;
          return Arrays.equals(this.comparators, that.comparators);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return Arrays.hashCode(comparators);
      }
    
      @Override
      public String toString() {
        return "Ordering.compound(" + Arrays.toString(comparators) + ")";
      }
    
      private static final long serialVersionUID = 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top