@Test public void retrieveThePowerSet() { PowerSet powerSet = new PowerSet(new HashSet<String>(Arrays.asList(inputSet))); assertTrue(powerSet.subsets().containsAll(expectedPowerSet)); }
public Set<Set<String>> subsets() { return Collections.unmodifiableSet(powerSet); }
PowerSet implements Iterable<Set<String>> { public Set<Set<String>> subsets() { return Collections.unmodifiableSet(powerSet); } }
PowerSet implements Iterable<Set<String>> { public Set<Set<String>> subsets() { return Collections.unmodifiableSet(powerSet); } PowerSet(Set<String> inputSet); }
PowerSet implements Iterable<Set<String>> { public Set<Set<String>> subsets() { return Collections.unmodifiableSet(powerSet); } PowerSet(Set<String> inputSet); @Override Iterator<Set<String>> iterator(); Set<Set<String>> subsets(); }
PowerSet implements Iterable<Set<String>> { public Set<Set<String>> subsets() { return Collections.unmodifiableSet(powerSet); } PowerSet(Set<String> inputSet); @Override Iterator<Set<String>> iterator(); Set<Set<String>> subsets();  }