Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for SubList (0.08 sec)

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

          String[] all = new String[elements.length + suffix.length];
          arraycopy(elements, 0, all, 0, elements.length);
          arraycopy(suffix, 0, all, elements.length, suffix.length);
          return ImmutableList.copyOf(all).subList(0, elements.length);
        }
      }
    
      public static class ImmutableListTailSubListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> subList = getList().subList(1, 3);
        getList().set(1, e3());
        assertEquals(
            "A set() call to a list after a sublist has been created "
                + "should be reflected in the sublist",
            asList(e3(), e2()),
            subList);
      }
    
      public void testSubList_ofSubListEmpty() {
        List<E> subList = getList().subList(0, 0).subList(0, 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

        List<E> subList = getList().subList(1, 3);
        getList().set(1, e3());
        assertEquals(
            "A set() call to a list after a sublist has been created "
                + "should be reflected in the sublist",
            asList(e3(), e2()),
            subList);
      }
    
      public void testSubList_ofSubListEmpty() {
        List<E> subList = getList().subList(0, 0).subList(0, 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

        sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
        for (int i = 0; i < entries.size(); i++) {
          assertEqualInOrder(
              entries.subList(0, i), navigableMap.headMap(entries.get(i).getKey()).entrySet());
        }
      }
    
      public void testTailMap() {
        List<Entry<K, V>> entries =
            copyToList(
                getSubjectGenerator()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          String[] all = new String[elements.length + suffix.length];
          arraycopy(elements, 0, all, 0, elements.length);
          arraycopy(suffix, 0, all, elements.length, suffix.length);
          return ImmutableList.copyOf(all).subList(0, elements.length);
        }
      }
    
      public static class ImmutableListTailSubListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  7. 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)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

        sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
        for (int i = 0; i < entries.size(); i++) {
          assertEqualInOrder(
              entries.subList(0, i), navigableMap.headMap(entries.get(i).getKey()).entrySet());
        }
      }
    
      public void testTailMap() {
        List<Entry<K, V>> entries =
            copyToList(
                getSubjectGenerator()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testPollFirst() {
        assertEquals(a, navigableSet.pollFirst());
        assertEquals(values.subList(1, values.size()), copyToList(navigableSet));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        }
        return sum;
      }
    
      private enum SubMultisetSpec {
        TAIL_CLOSED {
          @Override
          <E> List<Entry<E>> expectedEntries(int targetEntry, List<Entry<E>> entries) {
            return entries.subList(targetEntry, entries.size());
          }
    
          @Override
          <E> SortedMultiset<E> subMultiset(
              SortedMultiset<E> multiset, List<Entry<E>> entries, int targetEntry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top