Package edu.jas.util
Class PowerSetIterator<E>
java.lang.Object
edu.jas.util.PowerSetIterator<E>
Power set iterator.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
set
data structure. -
rest
-
current
-
recIter
-
mode
-
-
Constructor Details
-
PowerSetIterator
PowerSetIterator constructor.- Parameters:
set
- generating set.
-
-
Method Details
-
hasNext
public boolean hasNext()Test for availability of a next subset. -
next
Get next subset. -
remove
public void remove()Remove the last subset returned from underlying set if allowed.
-