Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SUPPORTS_ADD_WITH_INDEX (0.12 sec)

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

      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_supportedAllPresent() {
        assertTrue(
            "addAll(n, allPresent) should return true",
            getList().addAll(0, MinimalCollection.of(e0())));
        expectAdded(0, e0());
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java

    public class ListAddAtIndexTester<E> extends AbstractListTester<E> {
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAtIndex_supportedPresent() {
        getList().add(0, e0());
        expectAdded(0, e0());
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_supportedAllPresent() {
        assertTrue(
            "addAll(n, allPresent) should return true",
            getList().addAll(0, MinimalCollection.of(e0())));
        expectAdded(0, e0());
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

      @ListFeature.Require(absent = {SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
      public void testListIterator_unmodifiable() {
        runListIteratorTest(UNMODIFIABLE);
      }
    
      /*
       * For now, we don't cope with testing this when the list supports only some
       * modification operations.
       */
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @ListFeature.Require({SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
      public void testListIterator_fullyModifiable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListListIteratorTester.java

      @ListFeature.Require(absent = {SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
      public void testListIterator_unmodifiable() {
        runListIteratorTest(UNMODIFIABLE);
      }
    
      /*
       * For now, we don't cope with testing this when the list supports only some
       * modification operations.
       */
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @ListFeature.Require({SUPPORTS_SET, SUPPORTS_ADD_WITH_INDEX})
      public void testListIterator_fullyModifiable() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/features/ListFeature.java

    @GwtCompatible
    public enum ListFeature implements Feature<List> {
      SUPPORTS_SET,
      SUPPORTS_ADD_WITH_INDEX(CollectionFeature.SUPPORTS_ADD),
      SUPPORTS_REMOVE_WITH_INDEX(CollectionFeature.SUPPORTS_REMOVE),
    
      GENERAL_PURPOSE(
          CollectionFeature.GENERAL_PURPOSE,
          SUPPORTS_SET,
          SUPPORTS_ADD_WITH_INDEX,
          SUPPORTS_REMOVE_WITH_INDEX),
    
      /** Features supported by lists where only removal is allowed. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

    import static com.google.common.collect.testing.features.CollectionSize.ONE;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_ADD_WITH_INDEX;
    import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_REMOVE_WITH_INDEX;
    import static com.google.common.collect.testing.features.ListFeature.SUPPORTS_SET;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapTestSuiteBuilder.java

        Set<Feature<?>> derivedFeatures = super.computeMultimapGetFeatures(multimapFeatures);
        if (derivedFeatures.contains(CollectionFeature.SUPPORTS_ADD)) {
          derivedFeatures.add(ListFeature.SUPPORTS_ADD_WITH_INDEX);
        }
        if (derivedFeatures.contains(CollectionFeature.SUPPORTS_REMOVE)) {
          derivedFeatures.add(ListFeature.SUPPORTS_REMOVE_WITH_INDEX);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                    return new CopyOnWriteArrayList<>(MinimalCollection.of(elements));
                  }
                })
            .named("CopyOnWriteArrayList")
            .withFeatures(
                ListFeature.SUPPORTS_ADD_WITH_INDEX,
                ListFeature.SUPPORTS_REMOVE_WITH_INDEX,
                ListFeature.SUPPORTS_SET,
                CollectionFeature.SUPPORTS_ADD,
                CollectionFeature.SUPPORTS_REMOVE,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 15:04:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

              .put(
                  MapFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                  CollectionFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION)
              .put(MapFeature.GENERAL_PURPOSE, ListFeature.SUPPORTS_ADD_WITH_INDEX)
              .put(MapFeature.GENERAL_PURPOSE, ListFeature.SUPPORTS_REMOVE_WITH_INDEX)
              .put(MapFeature.GENERAL_PURPOSE, ListFeature.SUPPORTS_SET)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.8K bytes
    - Viewed (0)
Back to top