Package org.tweetyproject.commons.util
Class RandomSubsetIterator<T>
java.lang.Object
org.tweetyproject.commons.util.SubsetIterator<T>
org.tweetyproject.commons.util.RandomSubsetIterator<T>
- Type Parameters:
T
- The element class which is iterated.
Iterates over all subsets of a given sets in a random order.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionRandomSubsetIterator
(Set<T> set, boolean avoidDuplicates) 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
-
RandomSubsetIterator
Creates a new subset iterator for the given set.- Parameters:
set
- some set.avoidDuplicates
- whether to avoid duplicates in the iteration. NOTE: setting this value to true might increase computation time and needed space drastically.
-
-
Method Details
-
hasNext
-
next
-