Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for MinimalCollection (0.13 sec)

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

    @ElementTypesAreNonnullByDefault
    public class MinimalCollection<E extends @Nullable Object> extends AbstractCollection<E> {
      // TODO: expose allow nulls parameter?
    
      public static <E extends @Nullable Object> MinimalCollection<E> of(E... contents) {
        return new MinimalCollection<>(Object.class, true, contents);
      }
    
      // TODO: use this
      public static <E extends @Nullable Object> MinimalCollection<E> ofClassAndContents(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

            "removeAll(emptyCollection) should return false",
            collection.removeAll(MinimalCollection.of()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAll_nonePresent() {
        assertFalse(
            "removeAll(disjointCollection) should return false",
            collection.removeAll(MinimalCollection.of(e3())));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

            getList().addAll(0, MinimalCollection.of(e0())));
        expectAdded(0, e0());
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_unsupportedAllPresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> getList().addAll(0, MinimalCollection.of(e0())));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java

            "addAll(allPresent) should return true", getList().addAll(MinimalCollection.of(e0())));
        expectAdded(e0());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAll_unsupportedAllPresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> getList().addAll(MinimalCollection.of(e0())));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

            getList().addAll(0, MinimalCollection.of(e0())));
        expectAdded(0, e0());
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_unsupportedAllPresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> getList().addAll(0, MinimalCollection.of(e0())));
        expectUnchanged();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

        return SetTestSuiteBuilder.using(
                new TestStringSetGenerator() {
                  @Override
                  public Set<String> create(String[] elements) {
                    return new HashSet<>(MinimalCollection.of(elements));
                  }
                })
            .named("HashSet")
            .withFeatures(
                SetFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

         * MinimalCollection, which throws NullPointerException on calls to
         * contains(null).
         */
        List<E> disjointList = asList(e3(), e4());
        disjoint = new Target(disjointList, "disjoint");
        superset = new Target(MinimalCollection.of(e0(), e1(), e2(), e3(), e4()), "superset");
        nonEmptyProperSubset = new Target(MinimalCollection.of(e1()), "subset");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRetainAllTester.java

    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.MinimalCollection;
    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.CollectionSize;
    import org.junit.Ignore;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

        return SetTestSuiteBuilder.using(
                new TestStringSetGenerator() {
                  @Override
                  public Set<String> create(String[] elements) {
                    return new HashSet<>(MinimalCollection.of(elements));
                  }
                })
            .named("HashSet")
            .withFeatures(
                SetFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ForwardingCollectionTest.java

                      protected Collection<String> create(String[] elements) {
                        return new StandardImplForwardingCollection<>(MinimalCollection.of(elements));
                      }
                    })
                .named("ForwardingCollection[MinimalCollection] with standard" + " implementations")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
Back to top