Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 480 for sublist (0.17 sec)

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

      }
    
      @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) "
                + "should be a single-element list of the element at index 1",
            Collections.singletonList(getOrderedElements().get(1)),
            subList);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      }
    
      @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) "
                + "should be a single-element list of the element at index 1",
            Collections.singletonList(getOrderedElements().get(1)),
            subList);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 13.4K bytes
    - Viewed (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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 16:48:36 UTC 2024
    - 41.5K bytes
    - Viewed (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);
      }
    
      class SubList extends ImmutableList<E> {
        final transient int offset;
        final transient int length;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 27.1K bytes
    - Viewed (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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 16:48:36 UTC 2024
    - 41.9K bytes
    - Viewed (0)
  6. src/mdo/java/ImmutableCollections.java

                }
                return new SubList(fromIndex, toIndex);
            }
    
            protected IndexOutOfBoundsException outOfBounds(int index) {
                return new IndexOutOfBoundsException("Index: " + index + ", Size: " + size());
            }
    
            private class SubList extends AbstractImmutableList<E> {
                private final int fromIndex;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/writer/PgpKeyGrouper.java

            while (!remainder.isEmpty()) {
                previous = Lists.newArrayList(remainder);
                shortest = remainder.get(0);
                int prefixLen = 2;
                List<String> prefix = shortest.subList(0, prefixLen);
                List<String> commonPrefix = null;
                List<List<String>> candidatesWithSamePrefix = Lists.newArrayList(remainder);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. 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);
      }
    
      class SubList extends ImmutableList<E> {
        final transient int offset;
        final transient int length;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  9. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/ImmutableCollections.java

                }
                return new SubList(fromIndex, toIndex);
            }
    
            protected IndexOutOfBoundsException outOfBounds(int index) {
                return new IndexOutOfBoundsException("Index: " + index + ", Size: " + size());
            }
    
            private class SubList extends AbstractImmutableList<E> {
                private final int fromIndex;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

            }
            for (lastPackagePartIndexExclusive in 0..parts.size) {
                yield(
                    FqNameInterpretation.create(
                        packageParts = parts.subList(0, lastPackagePartIndexExclusive),
                        classParts = parts.subList(lastPackagePartIndexExclusive, parts.size),
                        callable = null,
                    )
                )
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top