Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for MinimalSet (0.1 sec)

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

     * can be used in the testers.
     *
     * @author Regina O'Dell
     */
    @GwtCompatible
    @NullMarked
    public class MinimalSet<E extends @Nullable Object> extends MinimalCollection<E> implements Set<E> {
    
      @SuppressWarnings("unchecked") // empty Object[] as E[]
      public static <E extends @Nullable Object> MinimalSet<E> of(E... contents) {
        return ofClassAndContents(Object.class, (E[]) new Object[0], asList(contents));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

     * can be used in the testers.
     *
     * @author Regina O'Dell
     */
    @GwtCompatible
    @NullMarked
    public class MinimalSet<E extends @Nullable Object> extends MinimalCollection<E> implements Set<E> {
    
      @SuppressWarnings("unchecked") // empty Object[] as E[]
      public static <E extends @Nullable Object> MinimalSet<E> of(E... contents) {
        return ofClassAndContents(Object.class, (E[]) new Object[0], asList(contents));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/MinimalSetTest.java

                  @Override
                  protected Set<String> create(String[] elements) {
                    return MinimalSet.of(elements);
                  }
                })
            .named("MinimalSet")
            .withFeatures(
                CollectionFeature.ALLOWS_NULL_VALUES, CollectionFeature.NONE, CollectionSize.ANY)
            .createTestSuite();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ForwardingSetTest.java

                      @Override
                      protected Set<String> create(String[] elements) {
                        return new StandardImplForwardingSet<>(MinimalSet.of(elements));
                      }
                    })
                .named("ForwardingSet[MinimalSet] with standard implementations")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

                + " even if some elements are null.",
            getSet().equals(MinimalSet.from(elements)));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherContainsNull() {
        Collection<E> elements = getSampleElements(getNumElements() - 1);
        elements.add(null);
        Set<E> other = MinimalSet.from(elements);
    
        assertFalse(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

                + " even if some elements are null.",
            getSet().equals(MinimalSet.from(elements)));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherContainsNull() {
        Collection<E> elements = getSampleElements(getNumElements() - 1);
        elements.add(null);
        Set<E> other = MinimalSet.from(elements);
    
        assertFalse(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

    import static com.google.common.collect.testing.features.CollectionFeature.ALLOWS_NULL_VALUES;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.MinimalSet;
    import com.google.common.collect.testing.features.CollectionFeature;
    import com.google.common.collect.testing.features.CollectionSize;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/collect/testing/MinimalSetTest.java

                  @Override
                  protected Set<String> create(String[] elements) {
                    return MinimalSet.of(elements);
                  }
                })
            .named("MinimalSet")
            .withFeatures(
                CollectionFeature.ALLOWS_NULL_VALUES, CollectionFeature.NONE, CollectionSize.ANY)
            .createTestSuite();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingSetTest.java

                      @Override
                      protected Set<String> create(String[] elements) {
                        return new StandardImplForwardingSet<>(MinimalSet.of(elements));
                      }
                    })
                .named("ForwardingSet[MinimalSet] with standard implementations")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractImmutableMapMapInterfaceTest.java

    package com.google.common.collect;
    
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.base.Joiner;
    import com.google.common.collect.testing.MapInterfaceTest;
    import com.google.common.collect.testing.MinimalSet;
    import java.util.HashSet;
    import java.util.Map;
    import java.util.Map.Entry;
    import org.jspecify.annotations.NullUnmarked;
    
    @GwtCompatible
    @NullUnmarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top