Package org.tweetyproject.commons.util
Class IncreasingSubsetIterator<T>
java.lang.Object
org.tweetyproject.commons.util.SubsetIterator<T>
org.tweetyproject.commons.util.IncreasingSubsetIterator<T>
- Type Parameters:
T
- The element class which is iterated.
Iterates over all subsets of a given set. This iterator first returns the empty
set, then all 1-element subsets, then all 2-element subsets,...
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionIncreasingSubsetIterator
(Set<T> set) Creates a new subset iterator for the given set. -
Method Summary
Methods inherited from class org.tweetyproject.commons.util.SubsetIterator
remove
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
IncreasingSubsetIterator
-
-
Method Details
-
hasNext
-
next
-