Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 249 for sublist (0.05 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> subList = getList().subList(0, 0).subList(0, 0);
        assertEquals("subList(0, 0).subList(0, 0) should be an empty list", emptyList(), subList);
      }
    
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_ofSubListNonEmpty() {
        List<E> subList = getList().subList(0, 2).subList(1, 2);
        assertEquals(
            "subList(0, 2).subList(1, 2) "
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> subList = getList().subList(0, 0).subList(0, 0);
        assertEquals("subList(0, 0).subList(0, 0) should be an empty list", emptyList(), subList);
      }
    
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_ofSubListNonEmpty() {
        List<E> subList = getList().subList(0, 2).subList(1, 2);
        assertEquals(
            "subList(0, 2).subList(1, 2) "
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Lists.java

       * lists are sublist views of the original list, produced on demand using {@link List#subList(int,
       * int)}, and are subject to all the usual caveats about modification as explained in that API.
       *
       * @param list the list to return consecutive sublists of
       * @param size the desired size of each sublist (the last may be smaller)
       * @return a list of consecutive sublists
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableList.java

        }
      }
    
      /**
       * Called by the default implementation of {@link #subList} when {@code toIndex - fromIndex > 1},
       * after index validation has already been performed.
       */
      ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
        return new SubList(fromIndex, toIndex - fromIndex);
      }
    
      private final class SubList extends ImmutableList<E> {
        final transient int offset;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Lists.java

       * lists are sublist views of the original list, produced on demand using {@link List#subList(int,
       * int)}, and are subject to all the usual caveats about modification as explained in that API.
       *
       * @param list the list to return consecutive sublists of
       * @param size the desired size of each sublist (the last may be smaller)
       * @return a list of consecutive sublists
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/Bytes.java

          byte oldValue = array[start + index];
          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
        public List<Byte> subList(int fromIndex, int toIndex) {
          int size = size();
          checkPositionIndexes(fromIndex, toIndex, size);
          if (fromIndex == toIndex) {
            return Collections.emptyList();
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

                    .named("ImmutableIntArray.asList, head subList"),
                ListTestSuiteBuilder.using(new ImmutableIntArrayTailSubListAsListGenerator())
                    .named("ImmutableIntArray.asList, tail subList"),
                ListTestSuiteBuilder.using(new ImmutableIntArrayMiddleSubListAsListGenerator())
                    .named("ImmutableIntArray.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

                .named("ImmutableList, head subList")
                .withFeatures(CollectionSize.ANY, SERIALIZABLE, ALLOWS_NULL_QUERIES)
                .createTestSuite());
        suite.addTest(
            ListTestSuiteBuilder.using(new ImmutableListTailSubListGenerator())
                .named("ImmutableList, tail subList")
                .withFeatures(CollectionSize.ANY, SERIALIZABLE, ALLOWS_NULL_QUERIES)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

                    .named("ImmutableDoubleArray.asList, head subList"),
                ListTestSuiteBuilder.using(new ImmutableDoubleArrayTailSubListAsListGenerator())
                    .named("ImmutableDoubleArray.asList, tail subList"),
                ListTestSuiteBuilder.using(new ImmutableDoubleArrayMiddleSubListAsListGenerator())
                    .named("ImmutableDoubleArray.asList, middle subList"));
    
        TestSuite suite = new TestSuite();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ImmutableList.java

        }
      }
    
      /**
       * Called by the default implementation of {@link #subList} when {@code toIndex - fromIndex > 1},
       * after index validation has already been performed.
       */
      ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) {
        return new SubList(fromIndex, toIndex - fromIndex);
      }
    
      private final class SubList extends ImmutableList<E> {
        final transient int offset;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.6K bytes
    - Click Count (0)
Back to Top