Home
last modified time | relevance | path

Searched refs:powerSet (Results 1 – 10 of 10) sorted by relevance

/external/guava/guava-tests/benchmark/com/google/common/collect/
DPowerSetBenchmark.java35 Set<Set<Integer>> powerSet; field in PowerSetBenchmark
40 powerSet = Sets.powerSet(set); in setUp()
47 for (Set<Integer> subset : powerSet) { in iteration()
/external/guava/android/guava-tests/benchmark/com/google/common/collect/
DPowerSetBenchmark.java35 Set<Set<Integer>> powerSet; field in PowerSetBenchmark
40 powerSet = Sets.powerSet(set); in setUp()
47 for (Set<Integer> subset : powerSet) { in iteration()
/external/guava/android/guava-tests/test/com/google/common/collect/
DSetsTest.java23 import static com.google.common.collect.Sets.powerSet;
799 Set<Set<Integer>> powerSet = powerSet(elements);
800 assertEquals(1, powerSet.size());
801 assertEquals(ImmutableSet.of(ImmutableSet.of()), powerSet);
802 assertEquals(0, powerSet.hashCode());
807 Set<Set<Integer>> powerSet = powerSet(elements);
808 assertEquals(8, powerSet.size());
809 assertEquals(4 * 1 + 4 * 2 + 4 * 3, powerSet.hashCode());
826 .addEqualityGroup(expected, powerSet)
832 assertTrue(powerSet.contains(subset));
[all …]
DContiguousSetTest.java288 for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) { in testContainsAll()
291 for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) { in testContainsAll()
DImmutableRangeSetTest.java399 for (Set<Range<Integer>> subset : Sets.powerSet(ranges)) { in testExhaustive()
/external/guava/guava-tests/test/com/google/common/collect/
DSetsTest.java23 import static com.google.common.collect.Sets.powerSet;
811 Set<Set<Integer>> powerSet = powerSet(elements);
812 assertEquals(1, powerSet.size());
813 assertEquals(ImmutableSet.of(ImmutableSet.of()), powerSet);
814 assertEquals(0, powerSet.hashCode());
819 Set<Set<Integer>> powerSet = powerSet(elements);
820 assertEquals(8, powerSet.size());
821 assertEquals(4 * 1 + 4 * 2 + 4 * 3, powerSet.hashCode());
838 .addEqualityGroup(expected, powerSet)
844 assertTrue(powerSet.contains(subset));
[all …]
DContiguousSetTest.java288 for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) { in testContainsAll()
291 for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) { in testContainsAll()
DImmutableRangeSetTest.java400 for (Set<Range<Integer>> subset : Sets.powerSet(ranges)) { in testExhaustive()
/external/guava/android/guava/src/com/google/common/collect/
DSets.java1418 public static <E> Set<Set<E>> powerSet(Set<E> set) {
/external/guava/guava/src/com/google/common/collect/
DSets.java1509 public static <E> Set<Set<E>> powerSet(Set<E> set) {