- All Implemented Interfaces:
Iterable<List<E>>
Power set with iterator.
-
-
Constructor Summary
Constructors
-
Method Summary
get an iterator over subsets.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Details
-
PowerSet
public PowerSet(List<E> set)
PowerSet constructor.
- Parameters:
set
- generating set.
-
Method Details
-
iterator
get an iterator over subsets.
- Specified by:
iterator
in interface Iterable<E>
- Returns:
- an iterator.