Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for powerSet (0.15 sec)

  1. android/guava-tests/test/com/google/common/collect/SetsTest.java

        Set<Set<Integer>> powerSet = powerSet(elements);
        assertEquals(1, powerSet.size());
        assertEquals(ImmutableSet.of(ImmutableSet.of()), powerSet);
        assertEquals(0, powerSet.hashCode());
      }
    
      public void testPowerSetContents() {
        ImmutableSet<Integer> elements = ImmutableSet.of(1, 2, 3);
        Set<Set<Integer>> powerSet = powerSet(elements);
        assertEquals(8, powerSet.size());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java

    /**
     * Very simple powerSet iteration benchmark.
     *
     * @author Kevin Bourrillion
     */
    @NullUnmarked
    public class PowerSetBenchmark {
      @Param({"2", "4", "8", "16"})
      int elements;
    
      Set<Set<Integer>> powerSet;
    
      @BeforeExperiment
      void setUp() {
        Set<Integer> set = ContiguousSet.create(Range.closed(1, elements), integers());
        powerSet = Sets.powerSet(set);
      }
    
      @Benchmark
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

            return inputSet.keySet().containsAll(set);
          }
          return false;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof PowerSet) {
            PowerSet<?> that = (PowerSet<?>) obj;
            return inputSet.keySet().equals(that.inputSet.keySet());
          }
          return super.equals(obj);
        }
    
        @Override
        public int hashCode() {
          /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      public void testContainsAll() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertTrue(set.containsAll(subset));
        }
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertFalse(set.containsAll(Sets.union(subset, ImmutableSet.of(9))));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

      public void testContainsAll() {
        ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.closed(1, 3), integers());
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertTrue(set.containsAll(subset));
        }
        for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
          assertFalse(set.containsAll(Sets.union(subset, ImmutableSet.of(9))));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

                Range.closed(4, 6),
                Range.closedOpen(1, 3),
                Range.openClosed(5, 7),
                Range.open(3, 4));
        subsets:
        for (Set<Range<Integer>> subset : Sets.powerSet(ranges)) {
          assertEquals(TreeRangeSet.create(subset), ImmutableRangeSet.unionOf(subset));
    
          RangeSet<Integer> mutable = TreeRangeSet.create();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  7. docs/en/data/sponsors.yml

      #   img: https://fastapi.tiangolo.com/img/sponsors/testdriven.svg
      - url: https://lambdatest.com/?utm_source=fastapi&utm_medium=partner&utm_campaign=sponsor&utm_term=opensource&utm_content=webpage
        title: LambdaTest, AI-Powered Cloud-based Test Orchestration Platform
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 15:19:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  8. README.md

    - [Português (Brazilian Portuguese)](docs/pt-BR/README.md)
    - [Français (French)](docs/fr/README.md)
    - [Deutsch (German)](docs/de/README.md)
    - [한국어 (Korean)](docs/ko/README.md)
    
    ## Powered By
    
    * [Lasta Di](https://github.com/lastaflute/lasta-di "Lasta Di"): DI Container
    * [LastaFlute](https://github.com/lastaflute/lastaflute "LastaFlute"): Web Framework
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 06:34:32 UTC 2025
    - 7.2K bytes
    - Viewed (2)
  9. README.md

    [libraries](https://www.tensorflow.org/resources/libraries-extensions), and
    [community](https://www.tensorflow.org/community) resources that lets
    researchers push the state-of-the-art in ML and developers easily build and
    deploy ML-powered applications.
    
    TensorFlow was originally developed by researchers and engineers working within
    the Machine Intelligence team at Google Brain to conduct research in machine
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Jul 18 14:09:03 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  10. docs/ja/README.md

    私たちは、あなたの言語でのプルリクエストを歓迎します。
    
    ## Powered By
    
    * [Lasta Di](https://github.com/lastaflute/lasta-di "Lasta Di"): DIコンテナ
    * [LastaFlute](https://github.com/lastaflute/lastaflute "LastaFlute"): Webフレームワーク
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Oct 12 07:19:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top