Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for subArray (0.06 sec)

  1. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableIntArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5, 25).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5.0);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5.0, 25.0).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(iia0.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 0)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5.0);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5.0, 25.0).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableLongArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/ImmutableIntArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableIntArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

        List<E> subArray = asList(array).subList(0, getNumElements());
        E[] expectedSubArray = createSamplesArray();
        for (int i = 0; i < getNumElements(); i++) {
          assertTrue(
              "toArray(overSizedE[]) should contain element " + expectedSubArray[i],
              subArray.contains(expectedSubArray[i]));
        }
        assertNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableIntArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       *
       * <p><b>Performance note:</b> The returned array has the same full memory footprint as this one
       * does (no actual copying is performed). To reduce memory usage, use {@code subArray(start,
       * end).trimmed()}.
       */
      public ImmutableDoubleArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top