@Test public void generateAllSubsetsOfAnEmptySet() { PowerSet subset = new PowerSet(new HashSet<String>()); Iterator<Set<String>> subsetIter = subset.iterator(); assertEquals(PowerSet.EMPTY_SET, subsetIter.next()); assertFalse(subsetIter.hasNext()); }
@Override public Iterator<Set<String>> iterator() { return powerSet.iterator(); }
PowerSet implements Iterable<Set<String>> { @Override public Iterator<Set<String>> iterator() { return powerSet.iterator(); } }
PowerSet implements Iterable<Set<String>> { @Override public Iterator<Set<String>> iterator() { return powerSet.iterator(); } PowerSet(Set<String> inputSet); }
PowerSet implements Iterable<Set<String>> { @Override public Iterator<Set<String>> iterator() { return powerSet.iterator(); } PowerSet(Set<String> inputSet); @Override Iterator<Set<String>> iterator(); Set<Set<String>> subsets(); }
PowerSet implements Iterable<Set<String>> { @Override public Iterator<Set<String>> iterator() { return powerSet.iterator(); } PowerSet(Set<String> inputSet); @Override Iterator<Set<String>> iterator(); Set<Set<String>> subsets();  }