Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for createDisjointCollection (2.04 sec)

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

      public void testAddAllAtIndex_middle() {
        assertTrue(
            "addAll(middle, disjoint) should return true",
            getList().addAll(getNumElements() / 2, createDisjointCollection()));
        expectAdded(getNumElements() / 2, createDisjointCollection());
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_end() {
        assertTrue(
    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/ListAddAllAtIndexTester.java

      public void testAddAllAtIndex_middle() {
        assertTrue(
            "addAll(middle, disjoint) should return true",
            getList().addAll(getNumElements() / 2, createDisjointCollection()));
        expectAdded(getNumElements() / 2, createDisjointCollection());
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_end() {
        assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_supportedNonePresent() {
        putAll(createDisjointCollection());
        expectAdded(e3(), e4());
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPutAll_unsupportedNonePresent() {
        assertThrows(UnsupportedOperationException.class, () -> putAll(createDisjointCollection()));
        expectUnchanged();
        expectMissing(e3(), e4());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

        assertTrue(
            "addAll(nonePresent) should return true", collection.addAll(createDisjointCollection()));
        expectAdded(e3(), e4());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNonePresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> collection.addAll(createDisjointCollection()));
        expectUnchanged();
        expectMissing(e3(), e4());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_supportedNonePresent() {
        putAll(createDisjointCollection());
        expectAdded(e3(), e4());
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testPutAll_unsupportedNonePresent() {
        assertThrows(UnsupportedOperationException.class, () -> putAll(createDisjointCollection()));
        expectUnchanged();
        expectMissing(e3(), e4());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

          assertFalse(message, getMap().containsValue(null));
        } catch (NullPointerException tolerated) {
          // Tolerated
        }
      }
    
      @Override
      protected MinimalCollection<Entry<K, V>> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected int getNumEntries() {
        return getNumElements();
      }
    
      protected Collection<Entry<K, V>> getSampleEntries(int howMany) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

          assertFalse(message, getMap().containsValue(null));
        } catch (NullPointerException tolerated) {
          // Tolerated
        }
      }
    
      @Override
      protected MinimalCollection<Entry<K, V>> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected int getNumEntries() {
        return getNumElements();
      }
    
      protected Collection<Entry<K, V>> getSampleEntries(int howMany) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       *     that involve a null element being present.
       */
      protected int getNullLocation() {
        return getNumElements() / 2;
      }
    
      protected MinimalCollection<E> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected MinimalCollection<E> emptyCollection() {
        return MinimalCollection.<E>of();
      }
    
      protected final E e0() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       *     that involve a null element being present.
       */
      protected int getNullLocation() {
        return getNumElements() / 2;
      }
    
      protected MinimalCollection<E> createDisjointCollection() {
        return MinimalCollection.of(e3(), e4());
      }
    
      protected MinimalCollection<E> emptyCollection() {
        return MinimalCollection.<E>of();
      }
    
      protected final E e0() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top